From: Janusz Dobrowolski Date: Fri, 19 Apr 2013 18:05:40 +0000 (+0200) Subject: Additional Chrome related fix in hotkeys support. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=273d272324828d9d43c0c47d13656b33c2811889;p=textcart.git Additional Chrome related fix in hotkeys support. --- diff --git a/js/inserts.js b/js/inserts.js index 2e14ebf..3448c86 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -454,8 +454,9 @@ var inserts = { ev.returnValue = false; return false; } - if (!_hotkeys.alt) // ommit chrome Chrome accesskeys - window.location = e.href; + if (_hotkeys.alt) // ommit Chrome accesskeys + return false; + window.location = e.href; } }, 'ul.ajaxtabs': function(ul) { @@ -466,7 +467,7 @@ var inserts = { // ? var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/") var url = tab.form.action tab.onclick=function(){ - if (!_hotkeys.alt) + if (!_hotkeys.alt && !tab.disabled) _expand(this); return false; }