summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json3
-rw-r--r--public/js/cover.js8
-rw-r--r--webpackBaseConfig.js2
3 files changed, 4 insertions, 9 deletions
diff --git a/package.json b/package.json
index 05789321..e56ac525 100644
--- a/package.json
+++ b/package.json
@@ -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",
diff --git a/public/js/cover.js b/public/js/cover.js
index a45a1c13..c9c2b6cb 100644
--- a/public/js/cover.js
+++ b/public/js/cover.js
@@ -54,11 +54,9 @@ const options = {
'</a>' +
'</li>',
page: 18,
- plugins: [
- window.ListPagination({
- outerWindow: 1
- })
- ]
+ pagination: [{
+ outerWindow: 1
+ }]
}
const historyList = new List('history', options)
diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js
index 9ab4c06a..f37eae59 100644
--- a/webpackBaseConfig.js
+++ b/webpackBaseConfig.js
@@ -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'),