includes/clientside/static/loader.js
author Dan
Thu, 26 Jun 2008 18:03:04 -0400
changeset 586 234ddd896555
parent 582 a38876c0793c
child 588 20484deb89cd
permissions -rw-r--r--
Made encryption work in form-based logon again; modified load_component() to fetch compressed versions when possible

// Some final stuff - loader routines, etc.

var onload_complete = false;

function mdgInnerLoader(e)
{
  window.onkeydown = isKeyPressed;
  window.onkeyup = function(e) { isKeyPressed(e); };
  
  if ( typeof(dbx_set_key) == 'function')
  {
    dbx_set_key();
  }
  
  runOnloadHooks(e);
}

// Enano's main init function.
function enano_init(e)
{
  mdgInnerLoader(e);
  
  // we're loaded; set flags to true
  onload_complete = true;
}

// don't init the page if less than IE6
if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH )
{
  window.onload = enano_init;
}