diff -r 95d9e7eacc83 -r 35b0a72083ca plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Tue Jul 12 22:49:29 2011 -0400 +++ b/plugins/SpecialAdmin.php Wed Mar 13 00:18:23 2013 -0400 @@ -2402,21 +2402,16 @@ 'icon_26' : '/images/icons/minusbottom.gif',// junction for opened node 'icon_27' : '/images/icons/minus.gif' // junction for last opended node }; - addOnloadHook(keepalive_onload); + if ( typeof(keepalive_onload) == 'function' ) + addOnloadHook(keepalive_onload); parseAdminTree(); // Make a Javascript array that defines the tree - if(!isset($_GET['module'])) { echo 'addOnloadHook(_enanoAdminOnload);'; } ?> + if(!isset($_GET['module'])) { echo 'addOnloadHook(function() { _enanoAdminOnload(); new tree(TREE_ITEMS, TREE_TPL, \'admin_tree\'); } )'; } ?>
-
- +
@@ -3010,4 +3005,4 @@ $template->footer(); } -?> \ No newline at end of file +?>