Here we go, preload_js() officially added to admin panel. Pray with me.
--- 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('<script type="text/javascript" src="'.cdnPath.'/includes/clientside/sbedit.js"></script>');
$template->header();
--- 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':