summaryrefslogtreecommitdiff
path: root/help3xsl/paginathing.js
diff options
context:
space:
mode:
Diffstat (limited to 'help3xsl/paginathing.js')
-rw-r--r--help3xsl/paginathing.js4
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];