mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fhemweb.js: fixt selectNumbers default 0 setting (Forum #123053)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25022 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
24ce5320b9
commit
454d2031bc
@ -841,6 +841,7 @@ FW_inlineModify() // Do not generate a new HTML page upon pressing modify
|
||||
}
|
||||
});
|
||||
|
||||
// Set and attr
|
||||
$("div input.psc[type=submit]:not(.get)").click(function(e){
|
||||
e.preventDefault();
|
||||
var newDef = typeof cm !== 'undefined' ?
|
||||
@ -1576,7 +1577,7 @@ FW_createSelect(elName, devName, vArr, currVal, set, params, cmd)
|
||||
vHash[o.value] = 1;
|
||||
newEl.options[j-1] = o;
|
||||
}
|
||||
if(currVal)
|
||||
if(typeof(currVal) != "undefined")
|
||||
$(newEl).val(currVal);
|
||||
if(elName)
|
||||
$(newEl).attr('name', elName);
|
||||
@ -1643,7 +1644,7 @@ FW_createSelectNumbers(elName, devName, vArr, currVal, set, params, cmd)
|
||||
k++;
|
||||
}
|
||||
}
|
||||
if(currVal)
|
||||
if(typeof(currVal) != "undefined")
|
||||
$(newEl).val(currVal.toFixed(dp));
|
||||
if(elName)
|
||||
$(newEl).attr('name', elName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user