From d463cab871d38c391aad7151c4ee776dcc2fe512 Mon Sep 17 00:00:00 2001 From: otrok7 <50595291+otrok7@users.noreply.github.com> Date: Mon, 27 May 2024 08:46:39 +0200 Subject: [PATCH] scoping of self variable --- crouton.php | 2 +- croutonjs/src/js/crouton-core.js | 8 ++++---- croutonjs/src/js/crouton-localization.js | 2 +- readme.txt | 5 ++++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/crouton.php b/crouton.php index de40677..319d2ff 100644 --- a/crouton.php +++ b/crouton.php @@ -5,7 +5,7 @@ Description: A tabbed based display for showing meeting information. Author: bmlt-enabled Author URI: https://bmlt.app -Version: 3.19.0 +Version: 3.19.1 */ /* Disallow direct access to the plugin file */ if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) { diff --git a/croutonjs/src/js/crouton-core.js b/croutonjs/src/js/crouton-core.js index da35fb9..520b324 100644 --- a/croutonjs/src/js/crouton-core.js +++ b/croutonjs/src/js/crouton-core.js @@ -291,7 +291,7 @@ function Crouton(config) { clearInterval(lock_id); callback(); } - }, 100) + }, 100); }; self.dayTab = function(day_id) { @@ -498,7 +498,7 @@ function Crouton(config) { callback(); }; self.updateMeetingCount = function(showingNow=null) { - self = this; + var self = this; let meetingCount = self.meetingData.length; if (self.meetingCountCallback) self.meetingCountCallback(meetingCount); if (self.groupCountCallback) self.groupCountCallback( @@ -1007,7 +1007,7 @@ Crouton.prototype.meetingModal = function(meetingId) { croutonMap.showMap(true); } Crouton.prototype.searchMap = function() { - self = this; + var self = this; if (!self.config.map_search || typeof self.config.map_search !== 'object') { self.config.map_search = { width: -50, @@ -1652,7 +1652,7 @@ function getUniqueFormatsOfType(array, type){ },[]); } Crouton.prototype.renderMeetingCount = function() { - self = this; + var self = this; self.lock(function() { self.updateMeetingCount() }); diff --git a/croutonjs/src/js/crouton-localization.js b/croutonjs/src/js/crouton-localization.js index ec850da..3e05f32 100644 --- a/croutonjs/src/js/crouton-localization.js +++ b/croutonjs/src/js/crouton-localization.js @@ -132,7 +132,7 @@ function CroutonLocalization(language) { "meeting_count": "Wöchentliche Meetings:", "venue_types": "Treffpunktarten", "venue_type_choices": { - IN_PERSON: "Präsens-Meetings", + IN_PERSON: "Präsenz-Meetings", VIRTUAL: "Online-Meetings", }, "service_body_types": { diff --git a/readme.txt b/readme.txt index 466c083..7de6d42 100644 --- a/readme.txt +++ b/readme.txt @@ -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.19.0 +Stable tag: 3.19.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html crouton implements a Tabbed UI for BMLT. @@ -36,6 +36,9 @@ https://demo.bmlt.app/crouton == Changelog == += 3.19.1 = +* Fix compatibility issue with Elementor. + = 3.19.0 = * Integration with Bmlt2Calendar to provide downloadable ICS files for personal calendars * Russian Translation