diff options
author | Wu Cheng-Han | 2016-10-11 16:48:42 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-11 16:48:42 +0800 |
commit | cd9f8fe36b707ff5a9f8f7be4d55145ddee97f3a (patch) | |
tree | e1d23fb85f84cd2b75ba1eadb182c9a49c48e7d4 /public | |
parent | c06b2f483898669b224321728321b7a3a8e9e37c (diff) |
Update to support pagination for history list
Diffstat (limited to '')
-rw-r--r-- | public/js/cover.js | 6 | ||||
-rw-r--r-- | public/views/index.ejs | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/public/js/cover.js b/public/js/cover.js index 429925a0..25434ed9 100644 --- a/public/js/cover.js +++ b/public/js/cover.js @@ -18,7 +18,11 @@ var options = { </div>\ </div>\ </a>\ - </li>' + </li>', + page: 18, + plugins: [ + ListPagination({}) + ] }; var historyList = new List('history', options); diff --git a/public/views/index.ejs b/public/views/index.ejs index f71cbdf5..4fdee8cf 100644 --- a/public/views/index.ejs +++ b/public/views/index.ejs @@ -135,6 +135,7 @@ <a href="#" class="btn btn-primary ui-import-from-browser" style="display:none;"><%= __('Import from browser') %></a> <ul id="history-list" class="list"> </ul> + <ul class="pagination"></ul> </div> <div class="mastfoot"> @@ -209,6 +210,7 @@ <% } %> <script src="<%- url %>/vendor/js-cookie/src/js.cookie.js" defer></script> <script src="<%- url %>/vendor/list.js/dist/list.min.js" defer></script> + <script src="<%- url %>/vendor/list.pagination.js/dist/list.pagination.min.js" defer></script> <script src="<%- url %>/vendor/file-saver/FileSaver.min.js" defer></script> <script src="<%- url %>/vendor/store-js/store.min.js" defer></script> <script src="<%- url %>/vendor/lz-string/libs/lz-string.min.js" defer></script> |