Skip to content

Commit

Permalink
WPCIVIUX-154 Do not output location info in tippy tooltips if there i…
Browse files Browse the repository at this point in the history
…s none
  • Loading branch information
agileware-iris committed Aug 8, 2024
1 parent 733332d commit ab6fc52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion civicrm-ux.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion public/js/event-fullcalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ const domevent = function (eventName, detail) {
<div class="event-time"><i class="fa fa-clock-o"></i><span class="event-time-text">${
formatAMPM(event_start) + " to " + formatAMPM(event_end)
}</span></div>
<div class="event-location"><i class="fa fa-map-marker"></i><span class="event-location-text">${event_location}</span></div>
${
event_location
? '<div class="event-location"><i class="fa fa-map-marker"></i><span class="event-location-text">' + event_location + '</span></div>'
: ""
}
`;

let tooltip = new tippy(info.el, {
Expand Down

0 comments on commit ab6fc52

Please sign in to comment.