includes/clientside/static/enano-lib-basic.js
changeset 1034 15fa1b4e730a
parent 1023 5a282dbf8fad
child 1046 cfc6c30c5e2d
equal deleted inserted replaced
1033:99bff0df45fa 1034:15fa1b4e730a
   208     if ( typeof(_f) == 'function' )
   208     if ( typeof(_f) == 'function' )
   209     {
   209     {
   210       _f(e);
   210       _f(e);
   211     }
   211     }
   212   }
   212   }
   213   onload_hooks = null;
   213   onload_hooks = [];
   214 }
   214 }
   215 
   215 
   216 var enano_hooks = {};
   216 var enano_hooks = {};
   217 function setHook(hook_name)
   217 function setHook(hook_name)
   218 {
   218 {
   309     ajax.send(null);
   309     ajax.send(null);
   310     // async request, so if status != 200 at this point then we're screwed
   310     // async request, so if status != 200 at this point then we're screwed
   311     if ( ajax.readyState == 4 && ajax.status == 200 )
   311     if ( ajax.readyState == 4 && ajax.status == 200 )
   312     {
   312     {
   313       if ( onload_complete )
   313       if ( onload_complete )
   314         onload_hooks = new Array();
   314         onload_hooks = [];
   315       eval_global(ajax.responseText);
   315       eval_global(ajax.responseText);
   316       if ( window.jQuery && aclDisableTransitionFX )
   316       if ( window.jQuery && aclDisableTransitionFX )
   317         if ( window.jQuery.fx )
   317         if ( window.jQuery.fx )
   318           window.jQuery.fx.off = true;
   318           window.jQuery.fx.off = true;
   319       load_hide_win();
   319       load_hide_win();
   325   {
   325   {
   326     alert('There was a problem loading a script from the server. Please check your network connection.');
   326     alert('There was a problem loading a script from the server. Please check your network connection.');
   327     load_hide_win();
   327     load_hide_win();
   328     console.info("Component loader exception is shown below.");
   328     console.info("Component loader exception is shown below.");
   329     console.debug(e);
   329     console.debug(e);
       
   330     console.trace();
   330     throw('load_component(): XHR for component ' + file + ' failed');
   331     throw('load_component(): XHR for component ' + file + ' failed');
   331   }
   332   }
   332   
   333   
   333   if ( !multiple )
   334   if ( !multiple )
   334   {
   335   {