mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-08 07:24:21 +00:00
fhemweb.js: allow middle-mouse-click (Forum #39154)
git-svn-id: https://svn.fhem.de/fhem/trunk@9125 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0e0d10dfa8
commit
f812236e21
@ -366,7 +366,8 @@ FW_replaceLink(el)
|
||||
ma = attr.match(new RegExp("^"+FW_root)); // Avoid "Connection lost" @iOS
|
||||
if(ma) {
|
||||
$(el).click(function(e) {
|
||||
if(e.shiftKey || e.ctrlKey || e.metaKey) // Open link in window/tab
|
||||
// Open link in window/tab, Forum #39154
|
||||
if(e.shiftKey || e.ctrlKey || e.metaKey || e.button == 1)
|
||||
return;
|
||||
FW_leaving = 1;
|
||||
if($(el).attr("target") == "_blank") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user