Fix bug.
This commit is contained in:
parent
df753856e4
commit
05bbab70b8
|
@ -106,8 +106,8 @@
|
|||
handle: ".brand",
|
||||
update: function(event, ui) {
|
||||
var new_index = ui.item.index();
|
||||
var old_index = ui.item.attr("index");
|
||||
var indices = [new_index,old_index].sort();
|
||||
var old_index = parseInt(ui.item.attr("index"));
|
||||
var indices = [new_index,old_index].sort(function(a,b){return a - b});
|
||||
for(var new_i=indices[0];new_i<=indices[1];new_i++){
|
||||
var td = ui.item.parent().find(">").eq(new_i);
|
||||
var old_i =td.attr("index");
|
||||
|
|
Loading…
Reference in New Issue