X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=156882bf27891c43a254568ea6911568940928a3;hb=3dc7f60a71b28453a8318c1d4b23b94a090f2171;hp=0c0067fdfcd2486315717f544c6fc09f500656e1;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 0c0067fd..156882bf 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -11,7 +11,7 @@ var _focus; var _hotkeys = { 'alt': false, // whether is the Alt key pressed - 'focus': -1 // currently selected indeks of document.links + 'focus': -1 // currently selected indeks of document.links }; function debug(msg) { @@ -73,7 +73,7 @@ function _set_combo_input(e) { } else if(this.className=='combo2') { this.style.display = 'none'; select.style.display = 'inline'; - setFocus(select.name); + setFocus(select); } return false; }; @@ -149,7 +149,7 @@ function _set_combo_select(e) { this.style.display = 'none'; box.style.display = 'inline'; box.value=''; - setFocus(box.name); + setFocus(box); return false; } if (this.getAttribute('aspect') == 'editable' && key==115) { @@ -172,7 +172,13 @@ var inserts = { if((ev.ctrlKey && key == 13) || key == 27) { ev.cancelBubble = true; if(ev.stopPropagation) ev.stopPropagation(); -// here ctrl-enter/escape support + // activate submit/escape form + for (var i=0; i