Added preload_js() support.
--- a/Floodlight.php Fri May 29 14:35:29 2009 -0400
+++ b/Floodlight.php Sun Jul 05 01:02:47 2009 -0400
@@ -86,6 +86,10 @@
{
global $db, $session, $paths, $template, $plugins; // Common objects
$template->add_header('<script type="text/javascript" src="' . makeUrlNS('Special', 'FloodlightJS', false, true) . '"></script>');
+ if ( method_exists($template, 'preload_js') )
+ {
+ $template->preload_js(array('l10n', 'jquery', 'jquery-ui', 'autofill'));
+ }
}
function page_Special_FloodlightJS()