From 7aa234ad58ac30de405a09d4c02f896ad2b08e55 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 5 Jul 2008 05:01:28 +0000 Subject: [PATCH] Gallery sort fix from AaronCampbell. fixes #6988 git-svn-id: http://svn.automattic.com/wordpress/trunk@8259 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }); }