Slider: "on/off" causes NaN -> converted it to 0
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2821 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -60,6 +60,8 @@ FW_doUpdate()
|
||||
}
|
||||
if(doSet) {
|
||||
var val = d[1].replace(/^.*?(\d+).*/g, "$1"); // get first number
|
||||
if(!val.match(/\d+/))
|
||||
val = 0;
|
||||
Slider(el, val);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user