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

moloc’s picture

Status: Active » Postponed (maintainer needs more info)

- 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?

moloc’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Cannot reproduce. If you can provide more information, reopen the issue.

moloc’s picture

Issue summary: View changes

Fixed the code block to include the correct call