app/assets/javascripts/scrivito_resourcebrowser/inspector.js.coffee in scrivito_resourcebrowser-0.0.5 vs app/assets/javascripts/scrivito_resourcebrowser/inspector.js.coffee in scrivito_resourcebrowser-0.0.6
- old
+ new
@@ -1,7 +1,7 @@
@ResourcebrowserInspector = do ->
- inspectorSelector: '.editing-resourcebrowser-inspector'
+ inspectorSelector: '.scrivito-resourcebrowser-inspector'
contentSelector: '.inspector-content'
inspector: undefined
objectId: undefined
_initializeBindings: ->
@@ -10,11 +10,11 @@
@inspector = @modal.find(@inspectorSelector)
@inspector.hide()
_onInspect: (event) ->
- if $(event.target).hasClass('editing-resourcebrowser-inspect')
+ if $(event.target).hasClass('scrivito-resourcebrowser-inspect')
currentTarget = $(event.currentTarget)
id = currentTarget.data('id')
if id
@open(id)
@@ -23,13 +23,13 @@
_renderLoading: ->
@inspector.html(@_loadingTemplate())
_loadingTemplate: ->
icon = $('<i></i>')
- .addClass('editing-icon editing-icon-refresh')
+ .addClass('scrivito-resourcebrowser-icon scrivito-resourcebrowser-icon-refresh')
$('<div></div>')
- .addClass('editing-resourcebrowser-loading')
+ .addClass('scrivito-resourcebrowser-loading')
.html(icon)
_highlightItem: (element) ->
@modal.find('li.resourcebrowser-item.active').removeClass('active')
element.addClass('active')