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