From cd9f8fe36b707ff5a9f8f7be4d55145ddee97f3a Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Tue, 11 Oct 2016 16:48:42 +0800 Subject: [PATCH] Update to support pagination for history list --- bower.json | 3 ++- public/js/cover.js | 6 +++++- public/views/index.ejs | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bower.json b/bower.json index c816b78..595fd27 100644 --- a/bower.json +++ b/bower.json @@ -59,7 +59,8 @@ "pdfobject": "pdfobject2#*", "gist-embed": "*", "keymaster": "^1.6.3", - "prism": "^1.5.1" + "prism": "^1.5.1", + "list.pagination.js": "^0.1.1" }, "resolutions": { "jquery": "~3.1.1" diff --git a/public/js/cover.js b/public/js/cover.js index 429925a..25434ed 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -18,7 +18,11 @@ var options = { \ \ \ - ' + ', + page: 18, + plugins: [ + ListPagination({}) + ] }; var historyList = new List('history', options); diff --git a/public/views/index.ejs b/public/views/index.ejs index f71cbdf..4fdee8c 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -135,6 +135,7 @@ +
@@ -209,6 +210,7 @@ <% } %> +