Skip to content

Commit

Permalink
Merge pull request #461 from bmlt-enabled/Bug-#460
Browse files Browse the repository at this point in the history
Bug #460
  • Loading branch information
otrok7 authored Jan 20, 2024
2 parents 47c0424 + cf6b2f0 commit 767c703
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crouton.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: A tabbed based display for showing meeting information.
Author: bmlt-enabled
Author URI: https://bmlt.app
Version: 3.18.3
Version: 3.18.4
*/
/* Disallow direct access to the plugin file */
if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
Expand Down
5 changes: 4 additions & 1 deletion croutonjs/src/js/crouton-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,10 @@ Crouton.prototype.render = function(doMeetingMap = false) {
jQuery("#bmlt-map").removeClass("hide");
}
if (self.config['map_page'] && !doMeetingMap) {
croutonMap.initialize('byfield_embeddedMapPage', self.meetingData);
if (self.meetingData.filter(m => m.venue_type != 2).length==0) {
jQuery('#filterButton_embeddedMapPage').addClass('hide');
}
else croutonMap.initialize('byfield_embeddedMapPage', self.meetingData);
}
if (self.config['refresh_map']) {
croutonMap.refreshMeetings(self.meetingData, true, true);
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: na, meeting list, meeting finder, maps, recovery, addiction, webservant, b
Requires at least: 4.0
Required PHP: 8.0
Tested up to: 6.4.2
Stable tag: 3.18.3
Stable tag: 3.18.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
crouton implements a Tabbed UI for BMLT.
Expand Down Expand Up @@ -36,6 +36,9 @@ https://demo.bmlt.app/crouton

== Changelog ==

= 3.18.4 =
* Do not embed map page when list contains only online meetings (fix for bug #460).

= 3.18.3 =
* Added min_zoom and max_zoom to the shortcode.
* Changed default template to bring up meeting details rather than going directly to google.
Expand Down

0 comments on commit 767c703

Please sign in to comment.