X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=js%2Finserts.js;h=773fc8f4f7f1b8b8a37c82e20bbe1938cef19602;hb=9ff22040ec9e77b56c71df9bd95f9b2c2d50bd7e;hp=0dd141650f64203d2f864004ae8fd926f0d11728;hpb=fbf51ab0febfd0885620abcab8738339d156ff45;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 0dd14165..773fc8f4 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -29,6 +29,12 @@ function validate(e) { return true; } +function set_fullmode() { + document.getElementById('ui_mode').value = 1; + document.loginform.submit(); + return true; +} + function save_focus(e) { _focus = e.name||e.id; var h = document.getElementById('hints'); @@ -133,8 +139,6 @@ function _set_combo_select(e) { e.setAttribute('_last', e.selectedIndex); e.onblur = function() { var box = document.getElementsByName(this.getAttribute('rel'))[0]; -// if(string_contains(this.className, 'combo')) -// _update_box(this); if ((this.selectedIndex != this.getAttribute('_last')) ||((string_contains(this.className, 'combo') || string_contains(this.className, 'combo3')) && _update_box(this)) ) @@ -310,10 +314,12 @@ var inserts = { e.onclick = function(){ if (validate(e)) { setTimeout(function() { var asp = e.getAttribute('aspect'); - set_mark((asp && (asp.indexOf('process') !== -1)) ? 'progressbar.gif' : 'ajax-loader.gif'); + if (asp && asp.indexOf('download') === -1) + set_mark((asp && ((asp.indexOf('process') !== -1) || (asp.indexOf('nonajax') !== -1))) ? 'progressbar.gif' : 'ajax-loader.gif'); }, 100); return true; } + return false; }, e.onkeydown = function(ev) { // block unintentional page escape with 'history back' key pressed on buttons ev = ev||window.event; @@ -463,11 +469,9 @@ var inserts = { var ulist=ul.getElementsByTagName("li"); for (var x=0; x