diff options
author | Jannik Schönartz | 2017-03-21 13:52:23 +0100 |
---|---|---|
committer | Jannik Schönartz | 2017-03-21 13:52:23 +0100 |
commit | 2040275191f2e808d1c721f98342506fc955ba43 (patch) | |
tree | c93515242ffe82e31c47f8554967c2a08efaa1ed /modules-available/locationinfo/templates/config.html | |
parent | Admin-panel: Redesigned config. Added helpboxes. (diff) | |
download | slx-admin-2040275191f2e808d1c721f98342506fc955ba43.tar.gz slx-admin-2040275191f2e808d1c721f98342506fc955ba43.tar.xz slx-admin-2040275191f2e808d1c721f98342506fc955ba43.zip |
Locationinfo: Added Comments to the functions.
Diffstat (limited to 'modules-available/locationinfo/templates/config.html')
-rw-r--r-- | modules-available/locationinfo/templates/config.html | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/modules-available/locationinfo/templates/config.html b/modules-available/locationinfo/templates/config.html index 1b42ff34..adce047b 100644 --- a/modules-available/locationinfo/templates/config.html +++ b/modules-available/locationinfo/templates/config.html @@ -279,7 +279,9 @@ initBootstrap(); loadValues(); - + /** + * Initialize the bootstrap elements. + */ function initBootstrap() { // Init Bootstrap stuff. $('#help-updateroom').tooltip(); @@ -298,6 +300,9 @@ $('#help-switchtime').tooltip(); } + /** + * Loads the Values in the config form elements. + */ function loadValues() { $("#{{language}}").attr("selected", "selected"); @@ -394,14 +399,29 @@ modeChange(mode.val()); } + /** + * Updates the value from the scale slider. + * + * @param newValue The new value the scale slider was set to. + */ function showScaleValue(newValue) { $("#scale").text(newValue + " %"); } + /** + * Updates the value from the switchtime slider. + * + * @param newValue The new value the switchtime slider was set to. + */ function showSwitchValue(newValue) { $("#switch").text(newValue + " " + '{{lang_sec}}'); } + /** + * If the mode was changed the mode settings have to be adjusted. + * + * @param value The new mode that was set. 1-4 + */ function modeChange(value) { $('#item-vertical').hide(); $('#item-autoscale').hide(); @@ -429,6 +449,11 @@ } } + /** + * If the auto scale changes the days to show must be shown / hided + * + * @param value The new value of the autoscale switch. + */ function autoScaleChange(value) { autoscale = value; if (value) { |