includes/clientside/static/loader.js
author Dan
Tue, 12 Feb 2008 22:17:58 -0500
changeset 419 b8b4e38825db
parent 189 fd0e9c7a7b28
child 420 301f546688d1
permissions -rw-r--r--
Unsuccessful attempt at fixing "dismiss"/"close manager" buttons in ACL editor; non-breaking change to template API to allow plugins to add "normal" sidebar widgets in addition to the special "raw" block type, specified as the third parameter to $template->sidebar_widget(). Defaults to false, which is old behavior; new behavior (enabled by passing TRUE as the 3rd param) means that the content of the block is primarily block-level links.

// Some final stuff - loader routines, etc.

function mdgInnerLoader(e)
{
  jws.startup();
  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);
}
if(window.onload) var ld = window.onload;
else var ld = function() {return;};
function enano_init(e) {
  ld(e);
  mdgInnerLoader(e);
}

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