Here we go, preload_js() officially added to admin panel. Pray with me.
authorDan
Sat, 11 Jul 2009 20:28:28 -0400
changeset 1055 15ef8d2147c2
parent 1054 e6b14d33ac55
child 1056 f21d6e75b469
Here we go, preload_js() officially added to admin panel. Pray with me.
plugins/SpecialAdmin.php
plugins/SpecialUserPrefs.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('<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':