app/assets/javascripts/scrivito_resourcebrowser/uploader.js.coffee in scrivito_resourcebrowser-0.0.5 vs app/assets/javascripts/scrivito_resourcebrowser/uploader.js.coffee in scrivito_resourcebrowser-0.0.6

- old
+ new

@@ -1,7 +1,7 @@ @ResourcebrowserUploader = do -> - dropZoneSelector: '.editing-resourcebrowser-items' + dropZoneSelector: '.scrivito-resourcebrowser-items' dropOverCssClass: 'uploader-drag-over' mimeTypeMapping: 'image/*': 'Image' 'video/*': 'Video' @@ -43,40 +43,40 @@ @_processQueue(queue, createdObjs, failedUploads, promise) else return promise.resolve(createdObjs, failedUploads) _addProgressWrapper: () -> - itemsElement = $('.editing-resourcebrowser-items').empty() + itemsElement = $('.scrivito-resourcebrowser-items').empty() $('<div></div>') - .addClass('editing-resourcebrowser-loading') + .addClass('scrivito-resourcebrowser-loading') .appendTo itemsElement $('<div></div>') - .addClass('editing-resourcebrowser-progress-wrapper') + .addClass('scrivito-resourcebrowser-progress-wrapper') .appendTo itemsElement _addProgress: (file) -> progressBar = $('<div></div>') - .addClass('editing-resourcebrowser-progress-bar') + .addClass('scrivito-resourcebrowser-progress-bar') .css('width', '10%') progress = $('<div></div>') - .addClass('editing-resourcebrowser-progress') + .addClass('scrivito-resourcebrowser-progress') .html(progressBar) fileName = $('<p></p>') .html(file.name) error = $('<p></p>') - .addClass('editing-resourcebrowser-error') + .addClass('scrivito-resourcebrowser-error') $('<div></div>') - .addClass('editing-resourcebrowser-progress-file') + .addClass('scrivito-resourcebrowser-progress-file') .append(fileName) .append(error) .append(progress) - .prependTo $('.editing-resourcebrowser-progress-wrapper') + .prependTo $('.scrivito-resourcebrowser-progress-wrapper') file.progressBar = progressBar file.error = error _updateProgress: (file, percent) ->