Skip to content

Commit f55a4b8

Browse files
committed
Update to fix pagination error in list.js over v1.5.0
1 parent 506a381 commit f55a4b8

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@
5454
"js-yaml": "^3.7.0",
5555
"jsdom-nogyp": "^0.8.3",
5656
"keymaster": "^1.6.2",
57-
"list.js": "^1.3.0",
58-
"list.pagination.js": "^0.1.1",
57+
"list.js": "^1.5.0",
5958
"lodash": "^4.17.4",
6059
"lz-string": "1.4.4",
6160
"markdown-it": "^8.2.2",

public/js/cover.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ const options = {
5454
'</a>' +
5555
'</li>',
5656
page: 18,
57-
plugins: [
58-
window.ListPagination({
59-
outerWindow: 1
60-
})
61-
]
57+
pagination: [{
58+
outerWindow: 1
59+
}]
6260
}
6361
const historyList = new List('history', options)
6462

webpackBaseConfig.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ module.exports = {
182182
'cover-pack': [
183183
'babel-polyfill',
184184
'bootstrap-validator',
185-
'script!listPagnation',
186185
'expose?select2!select2',
187186
'expose?moment!moment',
188187
'script!js-url',
@@ -365,7 +364,6 @@ module.exports = {
365364
codemirrorSpellChecker: path.join(__dirname, 'public/vendor/codemirror-spell-checker/spell-checker.min.js'),
366365
codemirrorInlineAttachment: path.join(__dirname, 'public/vendor/inlineAttachment/codemirror.inline-attachment.js'),
367366
ot: path.join(__dirname, 'public/vendor/ot/ot.min.js'),
368-
listPagnation: path.join(__dirname, 'node_modules/list.pagination.js/dist/list.pagination.min.js'),
369367
mermaid: path.join(__dirname, 'node_modules/mermaid/dist/mermaid.min.js'),
370368
handlebars: path.join(__dirname, 'node_modules/handlebars/dist/handlebars.min.js'),
371369
'jquery-ui-resizable': path.join(__dirname, 'public/vendor/jquery-ui/jquery-ui.min.js'),

0 commit comments

Comments
 (0)