themes/admin/js/menu.js
changeset 1049 9bf901e1de42
parent 699 c7d737202d59
--- a/themes/admin/js/menu.js	Wed Jul 08 23:37:01 2009 -0400
+++ b/themes/admin/js/menu.js	Wed Jul 08 23:39:31 2009 -0400
@@ -2,8 +2,6 @@
  * IE doesn't like display: table.
  */
 
-var TBL_SHOW = ( IE ) ? 'block' : 'table';
-
 function admin_expand()
 {
   var expander = document.getElementById('sidebar-hide');
@@ -84,6 +82,10 @@
   expander.style.height = barheight + 'px';
 }
 
+addOnloadHook(function()
+  {
+    window.TBL_SHOW = ( IE ) ? 'block' : 'table';
+  });
 addOnloadHook(expander_set_height);
 addOnloadHook(expander_onload);
 window.onresize = expander_set_height;