Fix eventClick su dashboard da mobile
This commit is contained in:
parent
e05bd4d0d5
commit
4a38a86bdf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue