This commit is contained in:
BoHung Chiu 2023-07-27 12:11:01 +08:00
parent 6eee8738cc
commit 42b59eb65e
1 changed files with 3 additions and 3 deletions

View File

@ -62,9 +62,9 @@
handle: ".brand",
update: function(event, ui) {
var item = ui.item;
var new_index = item.index();
var old_index = item.attr("index");
var indices = [new_index,old_index].sort();
var n_index = item.index();
var o_index = item.attr("index");
var indices = [n_index,o_index].sort();
for(var new_i=indices[0];new_i<=indices[1];new_i++){
var td = item.parent().find(">").eq(new_i);
td.attr("index",new_i);