WordPress.org

Make WordPress Core

Ticket #6988: 6988.004.diff

File 6988.004.diff, 529 bytes (added by AaronCampbell, 10 years ago)
  • trunk/wp-admin/js/gallery.js

     
    1010
    1111        // When an update has occurred, adjust the order for each item
    1212        var galleryReorder = function(e, sort) {
    13                 jQuery.each(sort['instance'].toArray(), function(i, id) {
     13                jQuery.each(sort['element'].sortable('toArray'), function(i, id) {
    1414                        jQuery('#' + id + ' .menu_order input')[0].value = i;
    1515                });
    1616        }