summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates
diff options
context:
space:
mode:
authorJannik Schönartz2016-12-02 17:18:38 +0100
committerJannik Schönartz2016-12-02 17:18:38 +0100
commitdf4a420dedabcaac420e32287e4a48e4ce968fba (patch)
treefc0fced1cd40dbb69fa0e57a56a23454ecb97398 /modules-available/locationinfo/templates
parentfrontend: fixed cases whend the backend doens't answer (diff)
downloadslx-admin-df4a420dedabcaac420e32287e4a48e4ce968fba.tar.gz
slx-admin-df4a420dedabcaac420e32287e4a48e4ce968fba.tar.xz
slx-admin-df4a420dedabcaac420e32287e4a48e4ce968fba.zip
Locationinfo config: added auto scale mode. Fixed some api bugs
Diffstat (limited to 'modules-available/locationinfo/templates')
-rw-r--r--modules-available/locationinfo/templates/config.html27
1 files changed, 23 insertions, 4 deletions
diff --git a/modules-available/locationinfo/templates/config.html b/modules-available/locationinfo/templates/config.html
index 06240e66..a814077a 100644
--- a/modules-available/locationinfo/templates/config.html
+++ b/modules-available/locationinfo/templates/config.html
@@ -23,7 +23,8 @@
</div>
<div style="float: left; margin-left: 15px;">
<input name="vertical" id="cb_vertical" type="checkbox"/> {{lang_vertical}}<br>
- <input name="eco" id="cb_eco" type="checkbox"/> {{lang_ecoMode}}
+ <input name="eco" id="cb_eco" type="checkbox"/> {{lang_ecoMode}}<br>
+ <input name="autoscale" id="cb_autoScale" type="checkbox"/> {{lang_autoScale}}
</div>
<div style="float: left; margin-left: 15px;">
@@ -102,6 +103,10 @@ function loadValues() {
$("#cb_eco").prop("checked", true);
}
+ if('{{scaledaysauto}}' == true){
+ $("#cb_autoScale").prop("checked", true);
+ }
+
var day = $("#{{daystoshow}}");
if (!day.length) {
day = $("#day7");
@@ -128,9 +133,23 @@ function loadValues() {
$("#sl_switch").attr('value', switchVal);
showSwitchValue(switchVal);
- $("#updateCalendar").attr("value", '{{calupdate}}');
- $("#updateRoom").attr("value", '{{roomupdate}}');
- $("#updateConfig").attr("value", '{{configupdate}}');
+ var calupdate = '{{calupdate}}';
+ if (!calupdate.length) {
+ calupdate = 30;
+ }
+ $("#updateCalendar").attr("value", calupdate);
+
+ var roomupdate = '{{roomupdate}}';
+ if (!roomupdate.length) {
+ roomupdate = 30;
+ }
+ $("#updateRoom").attr("value", roomupdate);
+
+ var configupdate = '{{configupdate}}';
+ if (!configupdate.length) {
+ configupdate = 180;
+ }
+ $("#updateConfig").attr("value", configupdate);
}
function showScaleValue(newValue) {