Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Oct 10, 2023
1 parent b8ffe3d commit aad2e82
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crouton.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ public function hasShortcode()
if (count($split) > 1) {
$this->hasMap = true;
}
if ($_GET['meeting-id']) {
$this->hasMap = true;
}
}
if ($shortcode[2] === 'bmlt_handlebar') {
$this->hasMap = true;
Expand Down Expand Up @@ -403,7 +406,8 @@ private function getMapInitialization($mapConfig)
"crouton_map_create_control",
$externalMap,
isset($config['language']) ? substr($config['language'], 0, 2) : 'en',
"croutonMap"
"croutonMap",
(empty($params['meeting_details_href'])) ? $_SERVER["REQUEST_URI"] : $params['meeting_details_href']
);
}
}
Expand Down
3 changes: 3 additions & 0 deletions croutonjs/src/js/crouton-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ CroutonMap.prototype.fillMap = function(filteredIds=null) {
infoWindow.setContent(marker.desc);
infoWindow.open(self.map, marker);
});
infoWindow.addListener('closeclick', function() {
jQuery(".bmlt-data-row > td").removeClass("rowHighlight");
});
// Add some markers to the map.
filteredMeetings.map(function (location, i) {
var marker_html = '<dl><dt><strong>';
Expand Down

0 comments on commit aad2e82

Please sign in to comment.