Skip to content

Commit 301a37d

Browse files
committed
fix issue in KWIC with results per page
1 parent e79ceb1 commit 301a37d

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

www/app/src/components/Kwic.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,12 @@ export default {
407407
});
408408
},
409409
initializePos(index) {
410-
var start = this.results.description.start;
411-
var currentPos = start + index;
412-
var currentPosLength = currentPos.toString().length;
413-
var endPos = start + parseInt(this.results.results_per_page) || 25;
414-
var endPosLength = endPos.toString().length;
415-
var spaces = endPosLength - currentPosLength + 1;
410+
let start = this.results.description.start;
411+
let currentPos = start + index;
412+
let currentPosLength = currentPos.toString().length;
413+
let endPos = start + parseInt(this.results_per_page) || 25;
414+
let endPosLength = endPos.toString().length;
415+
let spaces = endPosLength - currentPosLength + 1;
416416
return currentPos + "." + Array(spaces).join("&nbsp");
417417
},
418418
sortResults() {

0 commit comments

Comments
 (0)