Commit 25d763db by doszhang

dos

parent dcb795c3
......@@ -254,7 +254,16 @@ $(document).ready(function () {
});
function deleteCheckedFlag(event) {
console.log(event);
const target = $(event.target);
const text = target.parent().find('.checked-flag-text').text();
const index = flagStack.indexOf(text);
flagStack.splice(index, 1);
target.parent().remove();
const nodeList = $('.flag-list-content .checked-item');
for (let i = 0; i < nodeList.length; i++) {
$(nodeList[i]).find('.checked-flag-no').text(i + 1);
}
}
......
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