Fiscal year delete leads to undefined variable $total. Fixed.
[fa-stable.git] / js / inserts.js
index e1762dd37b1ba43836d72eb771fa70b16f8a8110..17b71143b60187ac01455c2be1c0031b1f69d255 100644 (file)
@@ -314,7 +314,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;
                        }
@@ -469,7 +470,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;
                    }