diff --git a/bootstrap3.facetview.theme.js b/bootstrap3.facetview.theme.js index 93f7dc1..9df251d 100644 --- a/bootstrap3.facetview.theme.js +++ b/bootstrap3.facetview.theme.js @@ -845,6 +845,13 @@ function basicPager(options) { if (total != 0) { from = from + 1; // zero indexed } + + if (!total || total == 0){ + totaltext = '' + } + else { + totaltext = ' of ' + total + } // forward and back-links, taking into account start and end boundaries var backlink = '« back'; diff --git a/jquery.facetview2.js b/jquery.facetview2.js index afe2656..6fe0cde 100644 --- a/jquery.facetview2.js +++ b/jquery.facetview2.js @@ -1580,6 +1580,9 @@ function getUrlVars() { facetVisibility(); } + // add the results metadata (paging, etc) + setUIResultsMetadata(); + // add the loading notification if (searching != "") { $(".facetview_searching", obj).html(searching)