includes/clientside/static/enano-lib-basic.js
changeset 752 8875559bae0e
parent 738 0dceea7ac8ff
child 779 609e35845ec3
equal deleted inserted replaced
751:c1242466d061 752:8875559bae0e
   248     }
   248     }
   249     ajax.send(null);
   249     ajax.send(null);
   250     // async request, so if status != 200 at this point then we're screwed
   250     // async request, so if status != 200 at this point then we're screwed
   251     if ( ajax.readyState == 4 && ajax.status == 200 )
   251     if ( ajax.readyState == 4 && ajax.status == 200 )
   252     {
   252     {
   253       onload_hooks = new Array();
   253       if ( onload_complete )
       
   254         onload_hooks = new Array();
   254       eval_global(ajax.responseText);
   255       eval_global(ajax.responseText);
   255       load_hide_win();
   256       load_hide_win();
   256       runOnloadHooks();
   257       if ( onload_complete )
       
   258         runOnloadHooks();
   257     }
   259     }
   258   }
   260   }
   259   catch(e)
   261   catch(e)
   260   {
   262   {
   261     alert('There was a problem loading a script from the server. Please check your network connection.');
   263     alert('There was a problem loading a script from the server. Please check your network connection.');