mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fhemweb.js: FW_queryValue should wait for the finished document (Forum #34011)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8040 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e49582329d
commit
ae4268c60e
@ -570,7 +570,7 @@ FW_queryValue(cmd, el)
|
||||
query = addcsrf(query);
|
||||
var qConn = new XMLHttpRequest();
|
||||
qConn.onreadystatechange = function() {
|
||||
if(qConn.readyState != 3)
|
||||
if(qConn.readyState != 4)
|
||||
return;
|
||||
var qResp = qConn.responseText.replace(/[\r\n]/g, "");
|
||||
if(el.setValueFn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user