autohide tooltips when opening edit dialog for calendar

Hi all,

a colleague of mine was complaining that tooltips persist and appear in front of the edit dialog when creating an event on the calendar.

my idea is that you could do one of three things

  • change tooltips z-index
  • delete tooltips DOM Nodes
  • trigger tooltips close method

I tried option two which then broke the tooltip functionality so I decided to opt for a monkey patch approach for the edit dialog function to implement option three.
Sharing this here so it could possibly be added to the open_edit_dialog function or implemented 3rd party by others


CAL.open_edit_dialog_new = CAL.open_edit_dialog

CAL.open_edit_dialog = function() {
$('.qtip-close').click();
  CAL.open_edit_dialog_new.apply(CAL,arguments);
}
1 Like