Skip to content
Browse files

Javascript added

  • Loading branch information...
1 parent f0a93e5 commit b01008523944e0e1b3a1f52e394ad7d6ce045fe8 tomflannaghan committed Aug 17, 2006
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/data/view.php
View
6 mod/data/view.php
@@ -147,7 +147,7 @@
$USER->editing = $edit;
}
-/// RSS and CSS meta
+/// RSS and CSS and JS meta
$meta = '';
if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) {
$rsspath = rss_get_url($course->id, $USER->id, 'data', $data->id);
@@ -157,6 +157,10 @@
if ($data->csstemplate) {
$meta .= '<link rel="stylesheet" type="text/css" href="'.$CFG->wwwroot.'/mod/data/css.php?d='.$data->id.'" /> ';
}
+ if ($data->jstemplate) {
+ $meta .= '<script type="text/javascript" src="'.$CFG->wwwroot.'/mod/data/js.php?d='.$data->id.'"></script>';
+ }
+
/// Print the page header
$PAGE->print_header($course->shortname.': %fullname%', '', $meta);

0 comments on commit b010085

Please sign in to comment.
Something went wrong with that request. Please try again.