X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=js%2Finserts.js;h=de9e8d4aed9546121e5043bd674520d498fb6a31;hb=9738f7d64641df18b688f0d03a3b62c93f40e0c7;hp=8f03de7f743e24fd4678e7b8761bc6bfee677549;hpb=5dc5289c7042dfcf44dfdcdc9321eac86ffd32c6;p=fa-stable.git diff --git a/js/inserts.js b/js/inserts.js index 8f03de7f..de9e8d4a 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)) ) @@ -149,6 +153,8 @@ function _set_combo_select(e) { var sname = '_'+s.name+'_update'; var update = document.getElementsByName(sname)[0]; if(update) { + if (typeof changeVar === "function") + changeVar(); JsHttpRequest.request(update); } } @@ -310,7 +316,8 @@ 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; } @@ -330,6 +337,9 @@ var inserts = { function(e) { e.onclick = function() { if (validate(e)) { + if (typeof changeVar === "function") + changeVar(); + save_focus(e); var asp = e.getAttribute('aspect') if (asp && (asp.indexOf('process') !== -1)) @@ -463,8 +473,6 @@ var inserts = { var ulist=ul.getElementsByTagName("li"); for (var x=0; x