# HG changeset patch # User Dan # Date 1247358508 14400 # Node ID 15ef8d2147c25a816df9152b58370113dad207f3 # Parent e6b14d33ac556c604f6c9d1a330c56ad3a9816f5 Here we go, preload_js() officially added to admin panel. Pray with me. diff -r e6b14d33ac55 -r 15ef8d2147c2 plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Sat Jul 11 20:28:03 2009 -0400 +++ b/plugins/SpecialAdmin.php Sat Jul 11 20:28:28 2009 -0400 @@ -2209,7 +2209,6 @@ addOnloadHook(function() { - console.trace(); new tree(TREE_ITEMS, TREE_TPL, 'admin_tree'); keepalive_onload(); }); @@ -2317,6 +2316,7 @@ )); } + $template->preload_js(array('l10n', 'jquery', 'jquery-ui')); $template->add_header(''); $template->header(); diff -r e6b14d33ac55 -r 15ef8d2147c2 plugins/SpecialUserPrefs.php --- a/plugins/SpecialUserPrefs.php Sat Jul 11 20:28:03 2009 -0400 +++ b/plugins/SpecialUserPrefs.php Sat Jul 11 20:28:28 2009 -0400 @@ -296,7 +296,7 @@ // This is not templatized because it conforms to the jBox menu standard. userprefs_show_menu(); - + switch ( $section ) { case 'Home':