diff --git a/themes/bootstrap3/js/pubdate_vis.js b/themes/bootstrap3/js/pubdate_vis.js index 5001c9ebc97f4aefe2d93ef8a7ee2c86b6645e4b..85857a1b9181a75d18d739b669a521ac60f7aa38 100644 --- a/themes/bootstrap3/js/pubdate_vis.js +++ b/themes/bootstrap3/js/pubdate_vis.js @@ -79,7 +79,7 @@ function loadVis(facetFields, searchParams, baseURL, zooming) { val.max = parseInt(val.data[val.data.length - 1][0], 10) + 5; } - if (zooming) { + if (zooming && hasFilter) { //check the first and last elements of the data array against min and max value (+padding) //if the element exists leave it, otherwise create a new marker with a minus one value if (val.data[val.data.length - 1][0] !== parseInt(val.max, 10) + 5) {