From: Janusz Dobrowolski Date: Fri, 26 Nov 2010 10:08:55 +0000 (+0000) Subject: Fixed hotkeys support after validation changes X-Git-Tag: v2.4.2~19^2~453 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=95f01b46e4470531b8c21ba5ef68e8d17b6520e1;p=fa-stable.git Fixed hotkeys support after validation changes --- diff --git a/js/inserts.js b/js/inserts.js index d6597578..e486c6c4 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -228,6 +228,7 @@ var inserts = { // this shows divs for js enabled browsers only e.style.display = 'block'; }, + 'button': function(e) { e.onclick = function(){ return validate(e); } }, @@ -324,13 +325,14 @@ var inserts = { ev.returnValue = false; return false; } + window.location = e.href; } }, 'ul.ajaxtabs': function(ul) { var ulist=ul.getElementsByTagName("li"); for (var x=0; x=0) { + if (_hotkeys.focus >= 0) { var link = _hotkeys.list[_hotkeys.focus]; if(link.onclick) link.onclick();