X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=b16a11538f14c518292147060dc6d73f1498f206;hb=c5c02144e4d60928f888af90060318649e03cdec;hp=a3c0b2a27ecf6cb4733c50a2f405c9ef347c76d9;hpb=37da0ea920fdff712ccef4e1324aa822e981c8fc;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index a3c0b2a2..b16a1153 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'; }, - 'input.ajaxsubmit,button.ajaxsubmit,button.editbutton,button.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; } @@ -305,7 +307,7 @@ function setHotKeys() { document.onkeydown = function(ev) { ev = ev||window.event; key = ev.keyCode||ev.which; - if (key == 18) { // start selection + if (key == 18 && !ev.ctrlKey) { // start selection, skip Win AltGr _hotkeys.alt = true; _hotkeys.focus = -1; return stopEv(ev); @@ -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);