01_FHEMWEB: optional new tab for FWEXT Links (Forum #33066)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@7788 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-01-31 10:50:27 +00:00
parent 2e4c6a479e
commit b74256f5da

View File

@@ -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;
}