From 8b0afb84c93c3587a7a41e9fe67375fc463373d7 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Thu, 4 Feb 2016 13:35:44 -0500 Subject: [PATCH] Display tooltip to create a new event after 250ms --- js/calendar/mods-for-hesk-calendar.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/js/calendar/mods-for-hesk-calendar.js b/js/calendar/mods-for-hesk-calendar.js index ebc34f96..c7b3d938 100644 --- a/js/calendar/mods-for-hesk-calendar.js +++ b/js/calendar/mods-for-hesk-calendar.js @@ -124,13 +124,21 @@ $(document).ready(function() { placement: 'auto' }).popover('show'); }, - eventMouseout: function (event) { + eventMouseout: function(event) { if (event.type === 'TICKET') { // There's no popover to destroy return; } $(this).popover('destroy'); + }, + dayRender: function(date, cell) { + var $cell = $(cell); + $cell.tooltip({ + container: 'body', + delay: { show: 250, hide: 0 }, + title: 'Click to add event' + }); } });