mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Calendar: Adjust event tooltips to avoid scroll issues in Firefox
This commit is contained in:
parent
99af186a01
commit
c04cf276b7
@ -105,9 +105,12 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
{
|
||||
event.options.statustext_html = true;
|
||||
event.set_statustext(event._tooltip());
|
||||
// Rebind with options
|
||||
event.egw().tooltipUnbind(event._tooltipElem);
|
||||
event.egw().tooltipBind(event.getTooltipElement(), event.statustext, event.options.statustext_html, {hideonhover: false});
|
||||
if(event.statustext)
|
||||
{
|
||||
return event.div.trigger('mouseenter');
|
||||
return jQuery(event.getTooltipElement()).trigger('mouseenter');
|
||||
}
|
||||
}
|
||||
// Hacky to remove egw's tooltip border and let the mouse in
|
||||
@ -121,17 +124,12 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
{
|
||||
event.div.off('mouseleave.tooltip');
|
||||
}
|
||||
|
||||
jQuery('body.egw_tooltip').remove();
|
||||
jQuery('body').append(this);
|
||||
jQuery(this).stop(true).fadeTo(400, 1)
|
||||
.on('mouseleave', function()
|
||||
{
|
||||
jQuery(this).fadeOut('400', function()
|
||||
{
|
||||
jQuery(this).remove();
|
||||
// Set up to work again
|
||||
event.set_statustext(event._tooltip());
|
||||
event.egw().tooltipCancel();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user