From ab6fc523da9c92dd2738395947280efc48e40b22 Mon Sep 17 00:00:00 2001 From: Iris Abarquez Date: Thu, 8 Aug 2024 13:32:14 +1000 Subject: [PATCH] WPCIVIUX-154 Do not output location info in tippy tooltips if there is none --- civicrm-ux.php | 2 +- public/js/event-fullcalendar.js | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/civicrm-ux.php b/civicrm-ux.php index a7bd063..8bd627f 100644 --- a/civicrm-ux.php +++ b/civicrm-ux.php @@ -9,7 +9,7 @@ * Plugin Name: WP CiviCRM UX * Plugin URI: https://github.com/agileware/wp-civicrm-ux * Description: A better user experience for integrating WordPress and CiviCRM - * Version: 1.14.2 + * Version: 1.14.3 * Requires at least: 5.8 * Requires PHP: 7.4 * Requires Plugins: civicrm diff --git a/public/js/event-fullcalendar.js b/public/js/event-fullcalendar.js index abe3366..3cd06f8 100644 --- a/public/js/event-fullcalendar.js +++ b/public/js/event-fullcalendar.js @@ -252,7 +252,11 @@ const domevent = function (eventName, detail) {
${ formatAMPM(event_start) + " to " + formatAMPM(event_end) }
-
${event_location}
+ ${ + event_location + ? '
' + event_location + '
' + : "" + } `; let tooltip = new tippy(info.el, {