\
- visit \
+ visited \
\
\
\
@@ -148,18 +148,19 @@ function deleteHistory() {
saveHistory([]);
historyList.clear();
checkHistoryList();
+ deleteId = null;
} else {
if (!deleteId) return;
getHistory(function (notehistory) {
var newnotehistory = removeHistory(deleteId, notehistory);
saveHistory(newnotehistory);
+ historyList.remove('id', deleteId);
+ checkHistoryList();
+ deleteId = null;
});
- historyList.remove('id', deleteId);
- checkHistoryList();
}
$('.delete-modal').modal('hide');
clearHistory = false;
- deleteId = null;
}
$(".ui-delete-modal-confirm").click(function () {
--
cgit v1.2.3