From 1626f47d6a1c9d864b38f4e17d5aee637e35b53c Mon Sep 17 00:00:00 2001 From: lucasalva87 <30728163+lucasalva87@users.noreply.github.com> Date: Thu, 26 Feb 2026 07:49:56 -0500 Subject: [PATCH 1/2] feat: aggiunta impostazione ritardo apertura tooltip dashboard Aggiunta una nuova impostazione 'Ritardo apertura tooltip dashboard (ms)' nella sezione Dashboard di zz_settings, che permette di configurare il ritardo in millisecondi prima che il tooltip venga mostrato al passaggio del mouse sugli eventi del calendario. - update/2_11.sql: INSERT dell'impostazione con valore predefinito 300ms e relative traduzioni in italiano e inglese in zz_settings_lang - update/2_5.php: aggiunta traduzione inglese per il meccanismo di localizzazione delle impostazioni esistenti - modules/dashboard/edit.php: esposizione del valore come globals.dashboard.tooltip_delay e utilizzo dinamico nel parametro 'delay' della configurazione tooltipster --- modules/dashboard/edit.php | 3 ++- update/2_11.sql | 10 +++++++++- update/2_5.php | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/dashboard/edit.php b/modules/dashboard/edit.php index 6d65729591..99f195ec90 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 2b977ad47c..bbd803668b 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 diff --git a/update/2_5.php b/update/2_5.php index 3fb28b8ccc..79ceb8011e 100644 --- a/update/2_5.php +++ b/update/2_5.php @@ -986,6 +986,7 @@ ['zz_settings_lang', 'Total tables restricted to selection', 'Totali delle tabelle ristretti alla selezione', ''], ['zz_settings_lang', 'Use sales prices inclusive of VAT', 'Utilizza prezzi di vendita comprensivi di IVA', 'Enable management with VAT-inclusive amounts for sales prices'], ['zz_settings_lang', 'Use tooltips on the calendar', 'Utilizzare i tooltip sul calendario', ''], + ['zz_settings_lang', 'Dashboard tooltip opening delay (ms)', 'Ritardo apertura tooltip dashboard (ms)', 'Defines the delay in milliseconds before the tooltip is shown when hovering over calendar events in the Dashboard.'], ['zz_settings_lang', 'Currency', 'Valuta', ''], ['zz_settings_lang', 'Check intervention number', 'Verifica numero intervento', 'Display the message that verifies the continuity of numbers for the activities.'], ['zz_settings_lang', 'Dashboard view', 'Vista dashboard', ''], From e92a09c73047f29d625b69ac1989fe246a9072bc Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 26 Feb 2026 16:03:33 +0100 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20rimossa=20traduzione=20inutile=20in?= =?UTF-8?q?=20quanto=20gi=C3=A0=20definita=20con=20la=20query=20di=20inser?= =?UTF-8?q?imento=20dell'impostazione.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update/2_5.php | 1 - 1 file changed, 1 deletion(-) diff --git a/update/2_5.php b/update/2_5.php index 79ceb8011e..3fb28b8ccc 100644 --- a/update/2_5.php +++ b/update/2_5.php @@ -986,7 +986,6 @@ ['zz_settings_lang', 'Total tables restricted to selection', 'Totali delle tabelle ristretti alla selezione', ''], ['zz_settings_lang', 'Use sales prices inclusive of VAT', 'Utilizza prezzi di vendita comprensivi di IVA', 'Enable management with VAT-inclusive amounts for sales prices'], ['zz_settings_lang', 'Use tooltips on the calendar', 'Utilizzare i tooltip sul calendario', ''], - ['zz_settings_lang', 'Dashboard tooltip opening delay (ms)', 'Ritardo apertura tooltip dashboard (ms)', 'Defines the delay in milliseconds before the tooltip is shown when hovering over calendar events in the Dashboard.'], ['zz_settings_lang', 'Currency', 'Valuta', ''], ['zz_settings_lang', 'Check intervention number', 'Verifica numero intervento', 'Display the message that verifies the continuity of numbers for the activities.'], ['zz_settings_lang', 'Dashboard view', 'Vista dashboard', ''],