Update to fix pagination error in list.js over v1.5.0

This commit is contained in:
Wu Cheng-Han 2017-03-14 23:08:15 +08:00
parent 506a381eca
commit f55a4b8497
3 changed files with 4 additions and 9 deletions

View file

@ -54,8 +54,7 @@
"js-yaml": "^3.7.0",
"jsdom-nogyp": "^0.8.3",
"keymaster": "^1.6.2",
"list.js": "^1.3.0",
"list.pagination.js": "^0.1.1",
"list.js": "^1.5.0",
"lodash": "^4.17.4",
"lz-string": "1.4.4",
"markdown-it": "^8.2.2",

View file

@ -54,11 +54,9 @@ const options = {
'</a>' +
'</li>',
page: 18,
plugins: [
window.ListPagination({
outerWindow: 1
})
]
pagination: [{
outerWindow: 1
}]
}
const historyList = new List('history', options)

View file

@ -182,7 +182,6 @@ module.exports = {
'cover-pack': [
'babel-polyfill',
'bootstrap-validator',
'script!listPagnation',
'expose?select2!select2',
'expose?moment!moment',
'script!js-url',
@ -365,7 +364,6 @@ module.exports = {
codemirrorSpellChecker: path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.js'),
codemirrorInlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
ot: path.join(__dirname, 'public/vendor/ot/ot.min.js'),
listPagnation: path.join(__dirname, 'node_modules/list.pagination.js/dist/list.pagination.min.js'),
mermaid: path.join(__dirname, 'node_modules/mermaid/dist/mermaid.min.js'),
handlebars: path.join(__dirname, 'node_modules/handlebars/dist/handlebars.min.js'),
'jquery-ui-resizable': path.join(__dirname, 'public/vendor/jquery-ui/jquery-ui.min.js'),