Gallery sort fix from AaronCampbell. fixes #6988

git-svn-id: http://svn.automattic.com/wordpress/trunk@8259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-07-05 05:01:28 +00:00
parent c2814da3f1
commit 7aa234ad58
1 changed files with 1 additions and 1 deletions

View File

@ -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;
});
}