From 268beafeae5872dce689e78322b823a0856f5c71 Mon Sep 17 00:00:00 2001 From: HomeAutoUser Date: Sun, 3 Dec 2023 19:48:07 +0100 Subject: [PATCH] Update 88_Timer.pm --- FHEM/88_Timer.pm | 58 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 11 deletions(-) diff --git a/FHEM/88_Timer.pm b/FHEM/88_Timer.pm index 5af708f..1b20ed0 100644 --- a/FHEM/88_Timer.pm +++ b/FHEM/88_Timer.pm @@ -614,14 +614,14 @@ sub Timer_FW_Detail { if ($Table_Border_Cell eq 'on') { $style_code1 = "border:1px solid #D8D8D8;"; } for(my $spalte = 0; $spalte <= $cnt_max - 1; $spalte++) { - # Timer-Nummer - auto Breite + # auto Breite | Timer-Nummer if ($spalte == 0) { $html.= "".$names[$spalte].""; } - # Dropdown-Listen - definierte Breite + # definierte Breite | Dropdown-Listen Jahr, Monat, Tag, Std, Min, Sek if ($spalte >= 1 && $spalte <= 6) { $html.= "".$names[$spalte].""; } - # auto Breite + # auto Breite | Bezeichnung, Aktion, Mo - So, aktive if ($spalte > 6 && $spalte < $cnt_max - 1) { $html.= "".$names[$spalte].""; } - # aktiv - auto Breite - if ($spalte == $cnt_max - 1) { $html.= "".$names[$spalte].""; } + # auto Breite | Offset + if ($spalte == $cnt_max - 1) { $html.= "".$names[$spalte].""; } } $html.= ""; @@ -652,7 +652,7 @@ sub Timer_FW_Detail { $id++; # Log3 $name, 3, "$name: FW_Detail | Zeile $zeile, id $id, select"; - $html.= ""; # id need for java script if ($spalte <= 6) { $html.= ""; } # Jahr, Monat, Tag, Stunde, Minute if ($spalte == 5 || $spalte == 6) { # Stunde, Minute $selected = $select_Value[$spalte-2] eq $designations[4] ? "selected=\"selected\"" : ''; @@ -733,9 +733,10 @@ sub Timer_FW_Detail { } /* Test eingestellter Wert fuer Ein/Ausblendung Eingabefeld*/ - function validColumn(id) { + function validColumn(id,Timers_Count) { var column_hh = (id - 4) / 20; var column_mm = (id - 5) / 20; + var column_offset = 0; const testValues = ["SA", "SU", "SR", "SS"]; let column_hide = false; @@ -744,10 +745,30 @@ sub Timer_FW_Detail { console.log("plausible column found with id " + id +" | selected: " + document.getElementById(id).value); for (let i=0; i