mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 23:06:05 +00:00
01_FHEMWEB.pm: support javascript in the menuEntries attribute (Forum #61114)
git-svn-id: https://svn.fhem.de/fhem/trunk@12613 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a45f2e1bc4
commit
9aa04d7ed3
@ -1480,7 +1480,7 @@ FW_roomOverview($)
|
||||
my $target = ''; # Forum 33066, 39854
|
||||
$target = 'target="_blank"' if($l2 =~ s/^$FW_ME\/\+/$FW_ME\//);
|
||||
$target = 'target="_blank"' if($l2 =~ m/commandref|fhem.de.fhem.html/);
|
||||
if($l2 =~ m/.html$/ || $l2 =~ m/^http/ || length($target)) {
|
||||
if($l2 =~ m/.html$/ || $l2 =~ m/^(http|javascript)/ || length($target)){
|
||||
FW_pO "<td><div><a href=\"$l2\" $target >$icon$l1</a></div></td>";
|
||||
} else {
|
||||
FW_pH $l2, "$icon$l1", 1, $class;
|
||||
|
Loading…
x
Reference in New Issue
Block a user