mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 00:36:25 +00:00
fhemweb.js: replace replaceAll (Forum #124771)
git-svn-id: https://svn.fhem.de/fhem/trunk@25366 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1069d54cd0
commit
821b97babe
@ -1584,7 +1584,7 @@ FW_createSelect(elName, devName, vArr, currVal, set, params, cmd)
|
|||||||
$(newEl).change(function(arg) { cmd($(newEl).val()) });
|
$(newEl).change(function(arg) { cmd($(newEl).val()) });
|
||||||
newEl.setValueFn = function(arg) {
|
newEl.setValueFn = function(arg) {
|
||||||
if(!vHash[arg] && typeof(arg) != "undefined")
|
if(!vHash[arg] && typeof(arg) != "undefined")
|
||||||
arg = (arg+"").replaceAll(" ","."); // Forum #124505
|
arg = (arg+"").replace(/ /g,"."); // #124505, replaceAll is Chrome 84+
|
||||||
if(vHash[arg])
|
if(vHash[arg])
|
||||||
$(newEl).val(arg);
|
$(newEl).val(arg);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user