Fix eventClick su dashboard da mobile

This commit is contained in:
Matteo 2024-06-11 09:35:17 +02:00
parent e05bd4d0d5
commit 4a38a86bdf
1 changed files with 4 additions and 4 deletions

View File

@ -709,13 +709,13 @@ globals.dashboard = {
if (isMobile() && setting('Utilizzare i tooltip sul calendario')) {
echo '
eventClick: function(info) {
let link = info.event.extendedProps.link;
let element = $(this);
var link = info.event.extendedProps.link;
var fc_element = info.el;
clickCnt++;
if (clickCnt === 1) {
oneClickTimer = setTimeout(function() {
clickCnt = 0;
element.trigger("mouseenter");
$(fc_element).trigger("mouseover");
}, 400);
} else if (clickCnt === 2) {
clearTimeout(oneClickTimer);