webCms added, longpoll bug fixed
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1051 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -30,8 +30,13 @@ function
|
||||
longpoll()
|
||||
{
|
||||
pollConn = new XMLHttpRequest();
|
||||
pollConn.open("GET", document.location.pathname+document.location.search+
|
||||
"&XHR=1&inform=1", true);
|
||||
var room="room=all";
|
||||
var sa = document.location.search.substring(1).split("&");
|
||||
for(var i = 0; i < sa.length; i++) {
|
||||
if(sa[i].substring(0,5) == "room=")
|
||||
room=sa[i];
|
||||
}
|
||||
pollConn.open("GET", document.location.pathname+room+"&XHR=1&inform=1", true);
|
||||
pollConn.onreadystatechange = doUpdate;
|
||||
pollConn.send(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user