# HG changeset patch # User Dan # Date 1247110771 14400 # Node ID 9bf901e1de4257d8726c0dfc9cd98b9cf9a576f2 # Parent 7b9132bfb5ce7408b5b95a0310c1ba0077238e13 Admin theme: fixed onload behavior of collapsible menu diff -r 7b9132bfb5ce -r 9bf901e1de42 themes/admin/footer.tpl --- a/themes/admin/footer.tpl Wed Jul 08 23:37:01 2009 -0400 +++ b/themes/admin/footer.tpl Wed Jul 08 23:39:31 2009 -0400 @@ -38,7 +38,7 @@ + {JS_FOOTER} - diff -r 7b9132bfb5ce -r 9bf901e1de42 themes/admin/js/menu.js --- 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;