fhem.pl: typo
fhemweb.js: Fix <a> rewrite with target="_blank" (Forum #39000) git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8941 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -3935,7 +3935,7 @@ readingsBulkUpdate($$$@)
|
||||
my $rv = "$reading: $value";
|
||||
if($changed) {
|
||||
if($reading eq "state") {
|
||||
$rv = "$value";
|
||||
$rv = $value;
|
||||
$hash->{CHANGEDWITHSTATE} = [];
|
||||
}
|
||||
addEvent($hash, $rv);
|
||||
|
||||
@@ -357,7 +357,11 @@ FW_replaceLink(el)
|
||||
if(ma) {
|
||||
$(el).click(function() {
|
||||
FW_leaving = 1;
|
||||
location.href = attr;
|
||||
if($(el).attr("target") == "_blank") {
|
||||
window.open(url, '_blank').focus();
|
||||
} else {
|
||||
location.href = attr;
|
||||
}
|
||||
});
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user