Gallery sort fix from AaronCampbell. fixes #6988

git-svn-id: https://develop.svn.wordpress.org/trunk@8259 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-07-05 05:01:28 +00:00
parent 32391d9b2a
commit 3373e4334e
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;
});
}