diff options
author | Wu Cheng-Han | 2015-09-24 11:55:56 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2015-09-24 11:55:56 +0800 |
commit | c06fb7a526989862dc237b74b312899f8eac161c (patch) | |
tree | 43815e310cdc45168a1b7008839a6509f1c0e5f5 /public/js/cover.js | |
parent | 6bdc63ca600d45aaaf26ddbd74602124e3eab0e6 (diff) |
Fixed index clear history list not working, history list will now be id-unique, fixed typo and styles
Diffstat (limited to '')
-rw-r--r-- | public/js/cover.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/public/js/cover.js b/public/js/cover.js index f1ca6131..412d329c 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -8,7 +8,7 @@ var options = { <div class="content">\ <h4 class="text"></h4>\ <p>\ - <i><i class="fa fa-clock-o"></i> visit </i><i class="fromNow"></i>\ + <i><i class="fa fa-clock-o"></i> visited </i><i class="fromNow"></i>\ <br>\ <i class="timestamp" style="display:none;"></i>\ <i class="time"></i>\ @@ -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 () { |