summaryrefslogtreecommitdiff
path: root/public/js/cover.js
diff options
context:
space:
mode:
authorWu Cheng-Han2016-10-12 13:08:53 +0800
committerWu Cheng-Han2016-10-12 13:08:53 +0800
commitf4fe27e26c5fafc12a4c3501cf49f9514f0e3c96 (patch)
tree9afd88ff68a5578b2dd0d1f9780c5d5153d0bb8c /public/js/cover.js
parentcd9f8fe36b707ff5a9f8f7be4d55145ddee97f3a (diff)
Update to make history refresh have better UX and keep the beginning and end of the pagination visible
Diffstat (limited to 'public/js/cover.js')
-rw-r--r--public/js/cover.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/js/cover.js b/public/js/cover.js
index 25434ed9..df2173b5 100644
--- a/public/js/cover.js
+++ b/public/js/cover.js
@@ -21,7 +21,9 @@ var options = {
</li>',
page: 18,
plugins: [
- ListPagination({})
+ ListPagination({
+ outerWindow: 1
+ })
]
};
var historyList = new List('history', options);
@@ -305,6 +307,8 @@ $(".ui-refresh-history").click(function () {
var lastKeyword = $('.search').val();
$('.search').val('');
historyList.search();
+ $('#history-list').slideUp('fast');
+ $('.pagination').slideUp('fast');
resetCheckAuth();
historyList.clear();
@@ -315,6 +319,8 @@ $(".ui-refresh-history").click(function () {
historyList.search(lastKeyword);
$('.search').val(lastKeyword);
checkHistoryList();
+ $('#history-list').slideDown('fast');
+ $('.pagination').slideDown('fast');
});
});