Browse Source

Display tooltip to create a new event after 250ms

merge-requests/1/head
Mike Koch 6 years ago
parent
commit
8b0afb84c9
  1. 10
      js/calendar/mods-for-hesk-calendar.js

10
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'
});
}
});

Loading…
Cancel
Save