2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 16:46:35 +00:00

fhemweb.js: adapt for FLOORPLAN changes. (Forum #34144)

git-svn-id: https://svn.fhem.de/fhem/trunk@8082 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-02-24 18:57:42 +00:00
parent c3c8ca7e38
commit 114285f54a

View File

@ -419,7 +419,7 @@ FW_longpoll()
FW_leaving = 0;
// Build the notify filter for the backend
var filter = document.body.getAttribute("longpollfilter");
var filter = $("body").attr("longpollfilter");
if(filter == null)
filter = "";
if(filter == "") {
@ -439,10 +439,8 @@ FW_longpoll()
}
}
if(filter == "" && document.getElementById("floorplan")) { //floorplan special
var name = document.body.getAttribute("id");
filter=".*;iconPath="+name.substring(0,name.length-5);
}
if($("#floorplan").length>0) //floorplan special
filter += ";iconPath="+$("body").attr("name");
if(filter == "") {
var content = document.getElementById("content");