From 71f0b33bf1c98d9ce597af2c07592e373df75fa0 Mon Sep 17 00:00:00 2001 From: squandor Date: Sat, 21 Jan 2017 22:14:55 +0100 Subject: [PATCH] added leveloffhidden selector switch #53 --- templates/switches.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/switches.html b/templates/switches.html index 89e47c9..b5439e0 100644 --- a/templates/switches.html +++ b/templates/switches.html @@ -141,6 +141,9 @@ $(document).ready(function() { requestAPI(flask_server + url, function(d) { r = JSON.parse(d); btns = r['result'][0]['LevelNames'].split('|'); + if (r['result'][0]['LevelOffHidden'] == true) { + btns.shift(); + } $.each(btns, function (i, lvlname) { activebtn = r['result'][0]['Level'] if (i != '0') {