Additional Chrome related fix in hotkeys support.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Fri, 19 Apr 2013 18:05:40 +0000 (20:05 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Fri, 19 Apr 2013 18:05:40 +0000 (20:05 +0200)
js/inserts.js

index 2e14ebf4d75df58657fa68262b885a2e5c8c5f5b..3448c86949691da79ffa36722467b7e72b8caadc 100644 (file)
@@ -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;
                    }