Skip to content

Commit 2ccea87

Browse files
committed
Fix location list not displaying
Location list not displaying with fullMapStartListLimit set to -1 and check was never made to ensure the fullMapStartListLimit is only used on the first run
1 parent 51b3cba commit 2ccea87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/jquery.storelocator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@
21192119
}
21202120
else {
21212121
// Set up the location list markup
2122-
if (_this.settings.fullMapStartListLimit !== false && ! isNaN(_this.settings.fullMapStartListLimit)) {
2122+
if (firstRun && _this.settings.fullMapStartListLimit !== false && !isNaN(_this.settings.fullMapStartListLimit) && _this.settings.fullMapStartListLimit !== -1) {
21232123
for (var m = 0; m < _this.settings.fullMapStartListLimit; m++) {
21242124
var currentMarker = markers[m];
21252125
_this.listSetup(currentMarker, storeStart, page);

0 commit comments

Comments
 (0)