Skip to content

Commit d4185c1

Browse files
authored
feat: aggiunta impostazione ritardo apertura tooltip dashboard
feat: aggiunta impostazione ritardo apertura tooltip dashboard
2 parents d9e8d14 + e92a09c commit d4185c1

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

modules/dashboard/edit.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@
408408
end_time: "'.((setting('Ora fine sul calendario') != '00:00:00' && !empty(setting('Ora fine sul calendario'))) ? setting('Ora fine sul calendario') : '23:59:59').'",
409409
write_permission: '.intval($modulo_interventi->permission == 'rw').',
410410
tooltip: '.intval(setting('Utilizzare i tooltip sul calendario')).',
411+
tooltip_delay: '.intval(setting('Ritardo apertura tooltip dashboard (ms)')).',
411412
calendar: null,
412413
timeFormat: "H:mm",
413414
select: {
@@ -760,7 +761,7 @@ function create_calendar() {
760761
contentAsHTML: true,
761762
hideOnClick: true,
762763
speed: 200,
763-
delay: 300,
764+
delay: globals.dashboard.tooltip_delay,
764765
maxWidth: 400,
765766
theme: "tooltipster-shadow",
766767
touchDevices: true,

update/2_11.sql

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,12 @@ ALTER TABLE `co_righe_contratti` ADD `id_tipointervento` INT(11) NULL;
4141
ALTER TABLE `co_contratti_tipiintervento` ADD `is_abilitato` TINYINT(1) NOT NULL DEFAULT 1;
4242

4343
-- Aggiunta gestione per conto di in scheda anagrafica
44-
ALTER TABLE `an_anagrafiche` ADD `idclientefinale` INT NOT NULL AFTER `idanagrafica`;
44+
ALTER TABLE `an_anagrafiche` ADD `idclientefinale` INT NOT NULL AFTER `idanagrafica`;
45+
46+
-- Aggiunta impostazione per il ritardo di apertura dei tooltip sulla Dashboard
47+
INSERT INTO `zz_settings` (`nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES
48+
('Ritardo apertura tooltip dashboard (ms)', '300', 'integer', 1, 'Dashboard');
49+
50+
INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`, `help`) VALUES
51+
(1, (SELECT MAX(`id`) FROM `zz_settings`), 'Ritardo apertura tooltip dashboard (ms)', 'Definisce il ritardo in millisecondi prima che il tooltip venga mostrato al passaggio del mouse sugli eventi del calendario nella Dashboard.'),
52+
(2, (SELECT MAX(`id`) FROM `zz_settings`), 'Dashboard tooltip opening delay (ms)', 'Defines the delay in milliseconds before the tooltip is shown when hovering over calendar events in the Dashboard.');

0 commit comments

Comments
 (0)