Use $theme->script() method to render module javascript files

This commit is contained in:
Tim Almdal
2009-06-28 16:50:55 -07:00
parent aa31e1f009
commit 5e83ebd6d0
6 changed files with 13 additions and 16 deletions

View File

@@ -20,11 +20,9 @@
class organize_theme {
static function head($theme) {
// @tdo remove the addition css and organize.js (just here to test)
$script[] = html::script("modules/organize/js/organize_init.js");
$script[] = html::script("modules/organize/js/organize.js");
$script[] = "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
$theme->script("modules/organize/js/organize_init.js");
$theme->script("modules/organize/js/organize.js");
return "<link rel=\"stylesheet\" type=\"text/css\" href=\"" .
url::file("modules/organize/css/organize.css") . "\" />";
return implode("\n", $script);
//return html::script("modules/organize/js/organize_init.js");
}
}