includes/clientside/static/loader.js
author Dan
Wed, 07 May 2008 14:05:31 -0400
changeset 547 0a2c1ce32d91
parent 520 4c16e87cfeae
child 581 5e8fd89c02ea
permissions -rw-r--r--
Added ETag on TinyMCE gzip; changed ETag format for standard pages so as to include user and login info to control caching when logged in or out
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     1
// Some final stuff - loader routines, etc.
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     2
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     3
function mdgInnerLoader(e)
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     4
{
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     5
  if(window.location.hash == '#comments') ajaxComments();
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     6
  window.onkeydown=isKeyPressed;
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     7
  window.onkeyup=function(e) { isKeyPressed(e); };
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     8
  Fat.fade_all();
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
     9
  fadeInfoBoxes();
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    10
  //initTextareas();
520
4c16e87cfeae Optmized a number of Javascript routines for better speed on pathetic Javascript interpreters.
Dan
parents: 420
diff changeset
    11
  //buildSearchBoxes();
1
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    12
  jBoxInit();
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    13
  if(typeof (dbx_set_key) == 'function')
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    14
  {
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    15
    dbx_set_key();
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    16
  }
189
fd0e9c7a7b28 Automatic set of state on Oxygen sidebar portlets should work now; reimplemented parts of the template parser (again) to workaround some PHP/PCRE issues and add support for parser plugins
Dan
parents: 57
diff changeset
    17
  initSliders();
1
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    18
  runOnloadHooks(e);
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    19
}
420
301f546688d1 Re-enabled, debugged, and optimized Javascript compression code
Dan
parents: 189
diff changeset
    20
var ld;
301f546688d1 Re-enabled, debugged, and optimized Javascript compression code
Dan
parents: 189
diff changeset
    21
if(window.onload) ld = window.onload;
301f546688d1 Re-enabled, debugged, and optimized Javascript compression code
Dan
parents: 189
diff changeset
    22
else ld = function() {return;};
1
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    23
function enano_init(e) {
420
301f546688d1 Re-enabled, debugged, and optimized Javascript compression code
Dan
parents: 189
diff changeset
    24
  if ( typeof(ld) == 'function' )
301f546688d1 Re-enabled, debugged, and optimized Javascript compression code
Dan
parents: 189
diff changeset
    25
  {
301f546688d1 Re-enabled, debugged, and optimized Javascript compression code
Dan
parents: 189
diff changeset
    26
    ld(e);
301f546688d1 Re-enabled, debugged, and optimized Javascript compression code
Dan
parents: 189
diff changeset
    27
  }
1
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    28
  mdgInnerLoader(e);
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    29
}
fe660c52c48f Adding /includes
dan@scribus.fuhry.local.fuhry.local
parents:
diff changeset
    30
57
b354deeaa4c4 Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents: 1
diff changeset
    31
if ( typeof(KILL_SWITCH) == 'boolean' && !KILL_SWITCH )
b354deeaa4c4 Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents: 1
diff changeset
    32
{
b354deeaa4c4 Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents: 1
diff changeset
    33
  window.onload = enano_init;
b354deeaa4c4 Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents: 1
diff changeset
    34
}
b354deeaa4c4 Vastly improved compatibility with older versions of IE, particularly 5.0, through the use of a kill switch that turns off all AJAX functions
Dan
parents: 1
diff changeset
    35