The problem seems to arise from the following:
Drupal.behaviors.mediaGallerySort.attach = function (context, settings) {
var $ = jQuery;
var $collection = $('.media-gallery-collection', context).once('media-gallery-sortable');
I can temporarily fix it by enclosing the function in
(function($){
Drupal.behaviors.mediaGallerySort.attach = function (context, settings) {
<del>var $ = jQuery;</del>
var $collection = $('.media-gallery-collection', context).once('media-gallery-sortable');
}
})(jQuery);
but this is unusual as they both seem to be doing the same thing. I've checked that the jquery.once.js library is loaded before media_gallery.dragdrop which is seems to be. Anyway, this should be useful anyway for anyone who comes up against the same problem
Comments
Comment #1
moloc commented- Which browser do you use?
- Is this reproduceable?
- Clear Drupal Cache -> is this still reproduceable?
- Clear Browser Cache -> is this still reproduceable?
Have you tried another browser / does this also occur in another other browser?
Comment #2
moloc commentedCannot reproduce. If you can provide more information, reopen the issue.
Comment #2.0
moloc commentedFixed the code block to include the correct call