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:
parent
c2814da3f1
commit
7aa234ad58
|
@ -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