Installer: Form AJAX action no longer fades (too slow!)
authorDan
Thu, 16 Apr 2009 13:01:22 -0400
changeset 931 9575aa88381f
parent 930 648043f3911d
child 932 d5437edb6c1c
Installer: Form AJAX action no longer fades (too slow!)
install/includes/js/formutils.js
--- a/install/includes/js/formutils.js	Thu Apr 16 12:47:48 2009 -0400
+++ b/install/includes/js/formutils.js	Thu Apr 16 13:01:22 2009 -0400
@@ -149,21 +149,25 @@
   hider.style.backgroundImage = 'url(../images/loading-big.gif)';
   hider.style.backgroundRepeat = 'no-repeat';
   hider.id = 'ajax_loader';
-  domObjChangeOpac(0, hider);
+  domObjChangeOpac(70, hider);
   var body = document.getElementsByTagName('body')[0];
   body.appendChild(hider);
-  opacity('ajax_loader', 0, 70, 750);
+  // opacity('ajax_loader', 0, 70, 750);
 }
 
 function install_unset_ajax_loading()
 {
   if ( document.getElementById('ajax_loader') )
   {
+    var body = document.getElementsByTagName('body')[0];
+    body.removeChild(document.getElementById('ajax_loader'));
+    /*
     opacity('ajax_loader', 70, 0, 750);
     setTimeout(function()
       {
         var body = document.getElementsByTagName('body')[0];
         body.removeChild(document.getElementById('ajax_loader'));
       }, 1000);
+    */
   }
 }