Water switch is only visible id auto water is off
This commit is contained in:
parent
11fdbc753d
commit
b0b9783882
@ -105,21 +105,24 @@ var parse_config = function (event) {
|
||||
}
|
||||
document.getElementById("heat_switch_label").style.visibility = visibility_heat
|
||||
document.getElementById("heat_switch").style.visibility = visibility_heat
|
||||
|
||||
document.getElementById("heat_auto_switch").value = output;
|
||||
document.getElementById("config_temperatures").style.visibility = visibility
|
||||
}
|
||||
output = "einschalten"
|
||||
visibility = 'hidden'
|
||||
var visibility_water = "visible"
|
||||
if(config.water && config.water.id == '1') {
|
||||
if(config.water.autostate) {
|
||||
output = "ausschalten"
|
||||
visibility = "visible"
|
||||
visibility_water = "hidden"
|
||||
document.getElementById("water_on_one").value = config.water.times[0].on_time;
|
||||
document.getElementById("water_off_one").value = config.water.times[0].off_time;
|
||||
document.getElementById("water_on_two").value = config.water.times[1].on_time;
|
||||
document.getElementById("water_off_two").value = config.water.times[1].off_time;
|
||||
}
|
||||
document.getElementById("water_switch_label").style.visibility = visibility_water
|
||||
document.getElementById("water_switch").style.visibility = visibility_water
|
||||
document.getElementById("water_auto_switch").value = output;
|
||||
document.getElementById("water_times").style.visibility = visibility
|
||||
}
|
||||
|
@ -28,8 +28,6 @@
|
||||
<input id="heat_switch" style="visibility: hidden;" type="submit" value="" onclick="on_switch_heat()"></input>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table class="center">
|
||||
<tr>
|
||||
<td class="table_left">Frostwächter</td>
|
||||
<td class="input">
|
||||
@ -65,9 +63,9 @@
|
||||
<hr>
|
||||
<table class="center">
|
||||
<tr>
|
||||
<td class="table_left">Bewässerung</td>
|
||||
<td class="table_left" id="water_switch_label" style="visibility: hidden;">Bewässerung</td>
|
||||
<td class="input">
|
||||
<input id="water_switch" type="submit" value="" onclick="on_switch_water()"></input>
|
||||
<input id="water_switch" style="visibility: hidden;" type="submit" value="" onclick="on_switch_water()"></input>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
Loading…
Reference in New Issue
Block a user