diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index 6d6572959..99f195ec9 100755 --- a/modules/dashboard/edit.php +++ b/modules/dashboard/edit.php @@ -408,6 +408,7 @@ end_time: "'.((setting('Ora fine sul calendario') != '00:00:00' && !empty(setting('Ora fine sul calendario'))) ? setting('Ora fine sul calendario') : '23:59:59').'", write_permission: '.intval($modulo_interventi->permission == 'rw').', tooltip: '.intval(setting('Utilizzare i tooltip sul calendario')).', + tooltip_delay: '.intval(setting('Ritardo apertura tooltip dashboard (ms)')).', calendar: null, timeFormat: "H:mm", select: { @@ -760,7 +761,7 @@ function create_calendar() { contentAsHTML: true, hideOnClick: true, speed: 200, - delay: 300, + delay: globals.dashboard.tooltip_delay, maxWidth: 400, theme: "tooltipster-shadow", touchDevices: true, diff --git a/update/2_11.sql b/update/2_11.sql index 2b977ad47..bbd803668 100644 --- a/update/2_11.sql +++ b/update/2_11.sql @@ -41,4 +41,12 @@ ALTER TABLE `co_righe_contratti` ADD `id_tipointervento` INT(11) NULL; ALTER TABLE `co_contratti_tipiintervento` ADD `is_abilitato` TINYINT(1) NOT NULL DEFAULT 1; -- Aggiunta gestione per conto di in scheda anagrafica -ALTER TABLE `an_anagrafiche` ADD `idclientefinale` INT NOT NULL AFTER `idanagrafica`; \ No newline at end of file +ALTER TABLE `an_anagrafiche` ADD `idclientefinale` INT NOT NULL AFTER `idanagrafica`; + +-- Aggiunta impostazione per il ritardo di apertura dei tooltip sulla Dashboard +INSERT INTO `zz_settings` (`nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES +('Ritardo apertura tooltip dashboard (ms)', '300', 'integer', 1, 'Dashboard'); + +INSERT INTO `zz_settings_lang` (`id_lang`, `id_record`, `title`, `help`) VALUES +(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.'), +(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.'); \ No newline at end of file