This commit is contained in:
BoHung Chiu 2023-07-27 11:49:29 +08:00
parent c0387847f2
commit 91178147c4
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);