From 4a38a86bdfc1fd9295d71595ef56a8314ef20e31 Mon Sep 17 00:00:00 2001 From: Matteo Date: Tue, 11 Jun 2024 09:35:17 +0200 Subject: [PATCH] Fix eventClick su dashboard da mobile --- modules/dashboard/edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index f44941028..e5b6fc565 100755 --- a/modules/dashboard/edit.php +++ b/modules/dashboard/edit.php @@ -709,19 +709,19 @@ 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); clickCnt = 0; location.href = link; - } + } },'; } else { echo '