From ad132d263c885dee4996e4ac9efdd0a94c3ae9c7 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Fri, 12 Feb 2016 15:53:31 +0000 Subject: [PATCH] fhemweb.js: fix strg open (Forum #44478) and target=_blank (Forum #49169) git-svn-id: https://svn.fhem.de/fhem/trunk@10800 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/fhemweb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js index 591b2b60c..7925e17c4 100644 --- a/fhem/www/pgm2/fhemweb.js +++ b/fhem/www/pgm2/fhemweb.js @@ -387,13 +387,13 @@ FW_replaceLink(el) ma = attr.match(new RegExp("^"+FW_root)); // Avoid "Connection lost" @iOS if(ma) { $(el).click(function(e) { - e.preventDefault(); // Open link in window/tab, Forum #39154 if(e.shiftKey || e.ctrlKey || e.metaKey || e.button == 1) return; + e.preventDefault(); FW_leaving = 1; if($(el).attr("target") == "_blank") { - window.open(url, '_blank').focus(); + window.open(attr, '_blank').focus(); } else { location.href = attr; }