mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
01_FHEMWEB: optional new tab for FWEXT Links (Forum #33066)
git-svn-id: https://svn.fhem.de/fhem/trunk@7788 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
571785313d
commit
757ec17b82
@ -1281,8 +1281,10 @@ FW_roomOverview($)
|
||||
}
|
||||
|
||||
# Force external browser if FHEMWEB is installed as an offline app.
|
||||
if($l2 =~ m/.html$/ || $l2 =~ m/^http/) {
|
||||
FW_pO "<td><div><a href=\"$l2\">$icon$l1</a></div></td>";
|
||||
my $target = ''; # Forum 33066
|
||||
$target = 'target=\"_blank\" ' if($l2 =~ s/\+//);
|
||||
if($l2 =~ m/.html$/ || $l2 =~ m/^http/ || 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