mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
fhemweb.js: dynamic-room patches from justme1968 (Forum #97351)
git-svn-id: https://svn.fhem.de/fhem/trunk@18972 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
00ffafb683
commit
8a791b8086
@ -699,6 +699,7 @@ FW_replaceLink(el)
|
||||
$(el).removeAttr("href");
|
||||
$(el).removeAttr("onclick");
|
||||
$(el).click(function() {
|
||||
attr = attr.replace(/&.*$/,''); // remove unnecessary params, forum: #97351
|
||||
FW_cmd(attr+"&XHR=1", function(txt){
|
||||
if(!txt)
|
||||
return;
|
||||
@ -1171,6 +1172,11 @@ FW_longpoll()
|
||||
filter="room="+room;
|
||||
}
|
||||
}
|
||||
|
||||
// use devspec directly if room is dynamic (#devspec=<devspec>)
|
||||
filter = filter.replace( 'room=#devspec=', '' );
|
||||
filter = filter.replace( 'room=%23devspec%3d', '' );
|
||||
|
||||
var iP = $("body").attr("iconPath");
|
||||
if(iP != null)
|
||||
filter = filter +";iconPath="+iP;
|
||||
|
Loading…
Reference in New Issue
Block a user