diff options
author | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2018-11-09 19:46:07 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-11-09 21:14:57 +0100 |
commit | 9fb9990b3568c973cc41d5600492e0791e44d40a (patch) | |
tree | 1f785629126da84d0974bf244d056b386df31437 /help3xsl/paginathing.js | |
parent | 3a6e63bbdfc95ab721f56d2486a5d1d9002e2c8c (diff) |
tdf#119415 change from fuse.js to fuzzysort.js
Tied the index listing to the current module.
Fuzzysort.js is MIT licensed.
Change-Id: I5d95cc1870a1856089217846ed0af572abc882d7
Reviewed-on: https://gerrit.libreoffice.org/63203
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/paginathing.js')
-rw-r--r-- | help3xsl/paginathing.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/help3xsl/paginathing.js b/help3xsl/paginathing.js index 3bb88f31d0..2f3636022f 100644 --- a/help3xsl/paginathing.js +++ b/help3xsl/paginathing.js @@ -75,7 +75,7 @@ var Paginator = function(element) { var startPage = 1; var currentPage = 1; var pageDivision = 0; - var totalItems = el.getElementsByClassName('fuseshown').length; + var totalItems = el.children.length; var limitPagination = options.limitPagination; pageDivision = Math.ceil(totalItems / options.perPage); // let's not display pagination leading nowhere @@ -187,7 +187,7 @@ var Paginator = function(element) { var startAt = page === 1 ? 0 : (page - 1) * options.perPage; var endAt = page * options.perPage; - var domLi = el.getElementsByClassName("fuseshown"); + var domLi = el.children; for (var i = 0, len = domLi.length; i < len; i++) { var item = domLi[i]; |