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:
parent
32391d9b2a
commit
3373e4334e
@ -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;
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user