includes/clientside/static/loader.js
author Dan
Mon, 16 Jun 2008 19:07:15 -0400
changeset 577 5118610ce160
parent 520 4c16e87cfeae
child 581 5e8fd89c02ea
permissions -rw-r--r--
Made template parser remember last initted page_id and namespace to avoid double init; made additional_headers reassign only do so if $template->additional_headers is empty (it's being blanked somehow, need to come up with a backtrace sometime)

// Some final stuff - loader routines, etc.

function mdgInnerLoader(e)
{
  if(window.location.hash == '#comments') ajaxComments();
  window.onkeydown=isKeyPressed;
  window.onkeyup=function(e) { isKeyPressed(e); };
  Fat.fade_all();
  fadeInfoBoxes();
  //initTextareas();
  //buildSearchBoxes();
  jBoxInit();
  if(typeof (dbx_set_key) == 'function')
  {
    dbx_set_key();
  }
  initSliders();
  runOnloadHooks(e);
}
var ld;
if(window.onload) ld = window.onload;
else ld = function() {return;};
function enano_init(e) {
  if ( typeof(ld) == 'function' )
  {
    ld(e);
  }
  mdgInnerLoader(e);
}

if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH )
{
  window.onload = enano_init;
}