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:
rudolfkoenig
2015-07-12 06:11:14 +00:00
parent a11210eece
commit c39fa3d1df
2 changed files with 6 additions and 2 deletions

View File

@@ -3935,7 +3935,7 @@ readingsBulkUpdate($$$@)
my $rv = "$reading: $value";
if($changed) {
if($reading eq "state") {
$rv = "$value";
$rv = $value;
$hash->{CHANGEDWITHSTATE} = [];
}
addEvent($hash, $rv);

View File

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