From 114285f54aa060d8ebf02479e2f1d0801577039a Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 24 Feb 2015 18:57:42 +0000 Subject: [PATCH] fhemweb.js: adapt for FLOORPLAN changes. (Forum #34144) git-svn-id: https://svn.fhem.de/fhem/trunk@8082 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index b98299d3a..c1b7cc74a 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -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");