summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/cover.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/public/js/cover.js b/public/js/cover.js
index 77444542..6f46ab88 100644
--- a/public/js/cover.js
+++ b/public/js/cover.js
@@ -266,9 +266,23 @@ $(".ui-clear-history").click(function () {
});
$(".ui-refresh-history").click(function () {
+ var lastTags = $(".ui-use-tags").select2('val');
+ $(".ui-use-tags").select2('val', '');
+ historyList.filter();
+ var lastKeyword = $('.search').val();
+ $('.search').val('');
+ historyList.search();
+
resetCheckAuth();
historyList.clear();
- parseHistory(historyList, parseHistoryCallback);
+ parseHistory(historyList, function (list, notehistory) {
+ parseHistoryCallback(list, notehistory);
+ $(".ui-use-tags").select2('val', lastTags);
+ $(".ui-use-tags").trigger('change');
+ historyList.search(lastKeyword);
+ $('.search').val(lastKeyword);
+ checkHistoryList();
+ });
});
$(".ui-logout").click(function () {