X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=5e6774b26435577ad54fd3c3ed0390e64f5a210a;hb=cb667e6d69ccd818ca1a10cff8a21a41dc3b4af5;hp=088b39571151973361667dbc048c1c6c21d95b7e;hpb=06ba17611dc4a33c626f8899b943c3590461d7d0;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 088b3957..5e6774b2 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -203,11 +203,13 @@ var inserts = { // this shows divs for js enabled browsers only e.style.display = 'block'; }, - '.ajaxsubmit,.editbutton,.navibutton': +// '.ajaxsubmit,.editbutton,.navibutton': // much slower on IE7 + 'button.ajaxsubmit,input.ajaxsubmit,input.editbutton,button.navibutton': function(e) { e.onclick = function() { if (this.getAttribute('aspect') == 'process') progbar(); + save_focus(this); JsHttpRequest.request(this); return false; } @@ -343,7 +345,12 @@ function setHotKeys() { if (key == 18) { _hotkeys.alt = false; if (_hotkeys.focus>=0) { - window.location = document.links[_hotkeys.focus].href; + var link = document.links[_hotkeys.focus]; + if (link.target=='_blank') { +// window.open(link.href,'','toolbar=no,scrollbar=no,resizable=yes,menubar=no,width=900,height=500'); + openWindow(link.href,'_blank'); + } else + window.location = link.href; } } return stopEv(ev);