Password reset mail could take several hours. After fix only a couple of seconds...
[fa-stable.git] / js / inserts.js
index e1762dd37b1ba43836d72eb771fa70b16f8a8110..773fc8f4f7f1b8b8a37c82e20bbe1938cef19602 100644 (file)
@@ -314,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) || (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;
                        }
+                       return false;
                },
                e.onkeydown = function(ev) {    // block unintentional page escape with 'history back' key pressed on buttons
                        ev = ev||window.event;
@@ -469,7 +471,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;
                    }