Ajax Inquiry Fixes (Braatwaate).
[fa-stable.git] / js / inserts.js
index e1762dd37b1ba43836d72eb771fa70b16f8a8110..de9e8d4aed9546121e5043bd674520d498fb6a31 100644 (file)
@@ -153,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);
                                }
                        }
@@ -314,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) || (asp.indexOf('nonajax') !== -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;
                        }
@@ -334,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))
@@ -469,7 +475,7 @@ var inserts = {
                var tab=ulist[x].getElementsByTagName("button")[0];
                    var url = tab.form.action
                    tab.onclick=function(){
-                   if (!_hotkeys.alt && !tab.disabled)
+                   if (!_hotkeys.alt && !this.disabled)
                                _expand(this);
                        return false;
                    }