Skip to content

Commit fc48609

Browse files
authored
Merge pull request bjorn2404#212 from heldr88/master
bjorn2404#211 - Fix page numbers still displayed when there are no results
2 parents 48ae712 + c342df6 commit fc48609

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/js/jquery.storelocator.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2529,17 +2529,17 @@
25292529
$this.slideDown();
25302530
}
25312531

2532-
// Handle no results
2533-
if (_this.isEmptyObject(locationset) || locationset[0].result === 'none') {
2534-
_this.emptyResult();
2535-
return;
2536-
}
2537-
25382532
// Output page numbers if pagination setting is true
25392533
if (_this.settings.pagination === true) {
25402534
_this.paginationSetup(page);
25412535
}
25422536

2537+
// Handle no results
2538+
if (_this.isEmptyObject(locationset) || locationset[0].result === 'none') {
2539+
_this.emptyResult();
2540+
return;
2541+
}
2542+
25432543
// Set up the modal window
25442544
_this.modalWindow();
25452545

0 commit comments

Comments
 (0)