Commit 41438ee0 by doszhang

dos

parent 7b9b116c
......@@ -182,16 +182,17 @@ $(document).ready(function () {
dragEl.find('.btn-checked-item-delete').css('color', '#fcfcfd');
},
onUpdate: function (event) {
},
onEnd: function (event) {
const dragEl = $(event.item);
dragEl.find('.btn-checked-item-delete').css('color', '#c30101');
swapArray(flagStack, event.oldIndex, event.newIndex);
const nodeList = $('.flag-list-content .checked-item');
const nodeList = $('.flag-list-content .checked-item:not(.sortable-drag)');
for (let i = 0; i < nodeList.length; i++) {
$(nodeList[i]).find('.checked-flag-no').text(i + 1);
}
},
onEnd: function (event) {
const dragEl = $(event.item);
dragEl.find('.btn-checked-item-delete').css('color', '#c30101');
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment