From 3d3f8351b8223a65cfd8ef2661864332395a061e Mon Sep 17 00:00:00 2001 From: Benjamin Gross Date: Wed, 25 May 2016 09:51:25 -0600 Subject: [PATCH] Show basicSlider when loading --- bootstrap3.facetview.theme.js | 7 +++++++ jquery.facetview2.js | 3 +++ 2 files changed, 10 insertions(+) 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)