From f4fe27e26c5fafc12a4c3501cf49f9514f0e3c96 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 12 Oct 2016 13:08:53 +0800 Subject: Update to make history refresh have better UX and keep the beginning and end of the pagination visible --- public/js/cover.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'public/js') 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 = { ', 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'); }); }); -- cgit v1.2.3