includes/clientside/static/enano-lib-basic.js
changeset 752 8875559bae0e
parent 738 0dceea7ac8ff
child 779 609e35845ec3
--- a/includes/clientside/static/enano-lib-basic.js	Fri Nov 28 22:11:51 2008 -0500
+++ b/includes/clientside/static/enano-lib-basic.js	Fri Nov 28 22:52:29 2008 -0500
@@ -250,10 +250,12 @@
     // async request, so if status != 200 at this point then we're screwed
     if ( ajax.readyState == 4 && ajax.status == 200 )
     {
-      onload_hooks = new Array();
+      if ( onload_complete )
+        onload_hooks = new Array();
       eval_global(ajax.responseText);
       load_hide_win();
-      runOnloadHooks();
+      if ( onload_complete )
+        runOnloadHooks();
     }
   }
   catch(e)