From 3373e4334e6b340d81963cd0ab06974529e21a4d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 5 Jul 2008 05:01:28 +0000 Subject: [PATCH] Gallery sort fix from AaronCampbell. fixes #6988 git-svn-id: https://develop.svn.wordpress.org/trunk@8259 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/js/gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/js/gallery.js b/wp-admin/js/gallery.js index aae02217c0..f29573ba8e 100644 --- a/wp-admin/js/gallery.js +++ b/wp-admin/js/gallery.js @@ -10,7 +10,7 @@ jQuery(function($) { // When an update has occurred, adjust the order for each item var galleryReorder = function(e, sort) { - jQuery.each(sort['instance'].toArray(), function(i, id) { + jQuery.each(sort['element'].sortable('toArray'), function(i, id) { jQuery('#' + id + ' .menu_order input')[0].value = i; }); }