mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 00:38:44 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@10800 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6afa85c397
commit
ad132d263c
@ -387,13 +387,13 @@ FW_replaceLink(el)
|
|||||||
ma = attr.match(new RegExp("^"+FW_root)); // Avoid "Connection lost" @iOS
|
ma = attr.match(new RegExp("^"+FW_root)); // Avoid "Connection lost" @iOS
|
||||||
if(ma) {
|
if(ma) {
|
||||||
$(el).click(function(e) {
|
$(el).click(function(e) {
|
||||||
e.preventDefault();
|
|
||||||
// Open link in window/tab, Forum #39154
|
// Open link in window/tab, Forum #39154
|
||||||
if(e.shiftKey || e.ctrlKey || e.metaKey || e.button == 1)
|
if(e.shiftKey || e.ctrlKey || e.metaKey || e.button == 1)
|
||||||
return;
|
return;
|
||||||
|
e.preventDefault();
|
||||||
FW_leaving = 1;
|
FW_leaving = 1;
|
||||||
if($(el).attr("target") == "_blank") {
|
if($(el).attr("target") == "_blank") {
|
||||||
window.open(url, '_blank').focus();
|
window.open(attr, '_blank').focus();
|
||||||
} else {
|
} else {
|
||||||
location.href = attr;
|
location.href = attr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user