diff --git a/patchsource/www/webui/webui.js b/patchsource/www/webui/webui.js index 50d9c24c..aef2bce2 100755 --- a/patchsource/www/webui/webui.js +++ b/patchsource/www/webui/webui.js @@ -37605,7 +37605,15 @@ SaveDeviceParameters = function() SetParameters ($F('global_iface'), channel_address, 'CHANNEL_'+i); actions++; } - + if ( + ( (window.P1_tom) && (P1_tom.iface == $F('global_iface')) && (P1_tom.address == channel_address) && (P1_tom.tom_isDirty()) && (P1_tom.jphb) ) || + ( (window.P2_tom) && (P2_tom.iface == $F('global_iface')) && (P2_tom.address == channel_address) && (P2_tom.tom_isDirty()) && (P2_tom.jphb) ) || + ( (window.P3_tom) && (P3_tom.iface == $F('global_iface')) && (P3_tom.address == channel_address) && (P3_tom.tom_isDirty()) && (P3_tom.jphb) ) || + ( (window.P4_tom) && (P4_tom.iface == $F('global_iface')) && (P4_tom.address == channel_address) && (P4_tom.tom_isDirty()) && (P4_tom.jphb) ) + ) { + SetParameters ($F('global_iface'), channel_address, 'TIMEOUTMANAGER'); + actions++; + } if($('chInternalPeers_' + i)) { // Alle Adressen der internen Links var _internalLinks = $('chInternalPeers_' + i).innerHTML, diff --git a/src/addon/VERSION b/src/addon/VERSION index d346e2ab..37c2d996 100644 --- a/src/addon/VERSION +++ b/src/addon/VERSION @@ -1 +1 @@ -5.3 +5.4 diff --git a/src/addon/js/jp_webui_inc.js b/src/addon/js/jp_webui_inc.js index 17cee1b6..7c28766f 100644 --- a/src/addon/js/jp_webui_inc.js +++ b/src/addon/js/jp_webui_inc.js @@ -35,7 +35,7 @@ HBTimeoutManager = Class.create(); HBTimeoutManager.prototype = Object.extend(new MsgBox(), { - initialize: function (iface, address, isOldDevGeneration, prgName) { + initialize: function (iface, address, prgName) { this.TOM_DAY = new Array ( translateKey('timeModuleLblSelSerialPatternSaturday') , @@ -47,9 +47,9 @@ HBTimeoutManager.prototype = Object.extend(new MsgBox(), { translateKey('timeModuleLblSelSerialPatternFriday') ); - this.isOldDevGeneration = isOldDevGeneration; this.iface = iface; this.address = address; + this.jphb = true; this.prg = (prgName != undefined && prgName != null) ? prgName : ""; @@ -143,21 +143,16 @@ HBTimeoutManager.prototype = Object.extend(new MsgBox(), { } else { inputelem = this.prg + elem[1] + "_" + elem[2] + "_" + loop; } - if (this.isOldDevGeneration) { - // Minuten der Zeit auf volle 10 pruefen und ggf. anpassen - $(inputelem).value = time = $(inputelem).value.replace(/[1-9]$/, "0"); - } else { - // Minuten der Zeit auf volle 5 pruefen und ggf. anpassen - var arTime = $(inputelem).value.split(":"), - hour = parseInt(arTime[0]), - min =Math.round(arTime[1] / 5) * 5 ; - if (min <= 9) {min = "0" + min;} - if (min == 60) {min = "00"; hour++;} - if (hour <= 9) {hour = "0" + hour;} - if (hour == 24) {hour = "23"; min = "55";} - - $(inputelem).value = time = hour + ":" + min; - } + // Minuten der Zeit auf volle 5 pruefen und ggf. anpassen + var arTime = $(inputelem).value.split(":"), + hour = parseInt(arTime[0]), + min =Math.round(arTime[1] / 5) * 5 ; + if (min <= 9) {min = "0" + min;} + if (min == 60) {min = "00"; hour++;} + if (hour <= 9) {hour = "0" + hour;} + if (hour == 24) {hour = "23"; min = "55";} + + $(inputelem).value = time = hour + ":" + min; endtime = this.tom_toTimeout(time); prev_endtime = -1; next_endtime = -1; @@ -238,13 +233,8 @@ HBTimeoutManager.prototype = Object.extend(new MsgBox(), { if (timeouts && timeouts.length > 0) { for (var i = 0; i < timeouts.length; i++) { - if (this.isOldDevGeneration) { - postStr += "&LEVEL" + TOM_DAY_ENG[dayidx] +"_" + (i+1) + "=" + timeouts[i][tom_level]; - postStr += "&TIMEOUT_" + TOM_DAY_ENG[dayidx] +"_" + (i+1) + "=" + timeouts[i][tom_endtime]; - } else { - postStr += "&" + this.prg + "LEVEL_" + TOM_DAY_ENG[dayidx] + "_" + (i + 1) + "=" + timeouts[i][tom_level]; - postStr += "&" + this.prg + "ENDTIME_" + TOM_DAY_ENG[dayidx] + "_" + (i + 1) + "=" + timeouts[i][tom_endtime]; - } + postStr += "&" + "LEVEL_" + TOM_DAY_ENG[dayidx] + "_" + (i + 1) + "=" + timeouts[i][tom_level]; + postStr += "&" + "ENDTIME_" + TOM_DAY_ENG[dayidx] + "_" + (i + 1) + "=" + timeouts[i][tom_endtime]; } } } diff --git a/src/addon/patch/common/webui.js.patch b/src/addon/patch/common/webui.js.patch index bcab44a5..7d62ce15 100644 --- a/src/addon/patch/common/webui.js.patch +++ b/src/addon/patch/common/webui.js.patch @@ -797,3 +797,20 @@ ID_CHOOSE_LED = 1022; ID_SET_OUCFM_MODE = 1023; ID_SET_STATUS_DISPLAY = 1024; +@@ -36863,7 +37605,15 @@ + SetParameters ($F('global_iface'), channel_address, 'CHANNEL_'+i); + actions++; + } +- ++ if ( ++ ( (window.P1_tom) && (P1_tom.iface == $F('global_iface')) && (P1_tom.address == channel_address) && (P1_tom.tom_isDirty()) && (P1_tom.jphb) ) || ++ ( (window.P2_tom) && (P2_tom.iface == $F('global_iface')) && (P2_tom.address == channel_address) && (P2_tom.tom_isDirty()) && (P2_tom.jphb) ) || ++ ( (window.P3_tom) && (P3_tom.iface == $F('global_iface')) && (P3_tom.address == channel_address) && (P3_tom.tom_isDirty()) && (P3_tom.jphb) ) || ++ ( (window.P4_tom) && (P4_tom.iface == $F('global_iface')) && (P4_tom.address == channel_address) && (P4_tom.tom_isDirty()) && (P4_tom.jphb) ) ++ ) { ++ SetParameters ($F('global_iface'), channel_address, 'TIMEOUTMANAGER'); ++ actions++; ++ } + if($('chInternalPeers_' + i)) { + // Alle Adressen der internen Links + var _internalLinks = $('chInternalPeers_' + i).innerHTML, diff --git a/src/addon/www/config/easymodes/hb_sw_tp_ch_master.tcl b/src/addon/www/config/easymodes/hb_sw_tp_ch_master.tcl index 16b5d7dc..df9fe421 100755 --- a/src/addon/www/config/easymodes/hb_sw_tp_ch_master.tcl +++ b/src/addon/www/config/easymodes/hb_sw_tp_ch_master.tcl @@ -103,9 +103,9 @@ proc set_htmlParams {iface address pps pps_descr special_input_id peer_type} { set CHANNEL "CHANNEL" - set ch [lindex [split $special_input_id _] 1] + set ch [lindex [split $special_input_id _] 1] + set pNr "P$ch"; - set hlpBoxWidth 450 set hlpBoxHeight 160 @@ -123,38 +123,34 @@ proc set_htmlParams {iface address pps pps_descr special_input_id peer_type} { - ## Wochenprogramm ## - - append HTML_PARAMS(separate_1) "