fhemweb.js: allow middle-mouse-click (Forum #39154)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9125 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-08-24 12:42:10 +00:00
parent dcd9ec9464
commit cb037c3150

View File

@@ -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") {