Commit 2dfb7e88 authored by Regis's avatar Regis

pageNum is now camelCased

parent 3f21b957
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
], ],
methods: { methods: {
changePage(e) { changePage(e) {
let pagenum = this.pageInfo.page; let pageNum = this.pageInfo.page;
let apiScope = gl.getParameterByName('scope'); let apiScope = gl.getParameterByName('scope');
if (!apiScope) apiScope = 'all'; if (!apiScope) apiScope = 'all';
...@@ -29,18 +29,18 @@ ...@@ -29,18 +29,18 @@
if (text === SPREAD) { if (text === SPREAD) {
return; return;
} else if (text === LAST) { } else if (text === LAST) {
pagenum = totalPages; pageNum = totalPages;
} else if (text === NEXT) { } else if (text === NEXT) {
pagenum = nextPage; pageNum = nextPage;
} else if (text === PREV) { } else if (text === PREV) {
pagenum = previousPage; pageNum = previousPage;
} else if (text === FIRST) { } else if (text === FIRST) {
pagenum = 1; pageNum = 1;
} else { } else {
pagenum = +text; pageNum = +text;
} }
this.change(pagenum, apiScope); this.change(pageNum, apiScope);
}, },
}, },
computed: { computed: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment