Skip to content

Commit

Permalink
stabilize crouton_map searches
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Aug 19, 2024
1 parent 22f7200 commit 67c7de9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions croutonjs/meetingMap/js/meeting_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ function MeetingMap(inConfig) {
retrieveGeolocation().then(position => {
showThrobber();
crouton.searchByCoordinates(position.latitude, position.longitude, config.map_search.width);
if (activeModal == gSearchModal) closeModalWindow(gSearchModal);
}).catch(error => {
console.error(error.message);
if (activeModal != gSearchModal) showBmltSearchDialog();
});
showBmltSearchDialog();
closeModalWindow(gSearchModal);
};
function clickSearch(e) {
gDelegate.clickSearch(e, function(lat,lng) {
Expand Down
1 change: 0 additions & 1 deletion croutonjs/src/js/crouton-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,6 @@ function Crouton(config) {
window.croutonMap = new MeetingMap(self.config);
if (self.config['map_search']) self.searchMap();
}
self.meetingSearch();
}

Crouton.prototype.setConfig = function(config) {
Expand Down

0 comments on commit 67c7de9

Please sign in to comment.