mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 11:16:31 -05:00
Update to support pagination for history list
This commit is contained in:
parent
c06b2f4838
commit
cd9f8fe36b
3 changed files with 9 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -18,7 +18,11 @@ var options = {
|
|||
</div>\
|
||||
</div>\
|
||||
</a>\
|
||||
</li>'
|
||||
</li>',
|
||||
page: 18,
|
||||
plugins: [
|
||||
ListPagination({})
|
||||
]
|
||||
};
|
||||
var historyList = new List('history', options);
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue