X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=js%2Finserts.js;h=156882bf27891c43a254568ea6911568940928a3;hb=3dc7f60a71b28453a8318c1d4b23b94a090f2171;hp=f05a87723589cd8c98762f30f1bdf632a5e85c37;hpb=4c16d92ae1e1032f23e029d7d2f901a65a4223bc;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index f05a8772..156882bf 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -1,7 +1,17 @@ +/********************************************************************** + Copyright (C) FrontAccounting, LLC. + Released under the terms of the GNU General Public License, GPL, + as published by the Free Software Foundation, either version 3 + of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License here . +***********************************************************************/ 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) { @@ -63,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; }; @@ -139,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) { @@ -162,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