mod-feedback MDL-16706 Removed inline JS and added PAGE methods

This commit is contained in:
samhemelryk 2009-07-03 02:01:21 +00:00
parent 183abffc6b
commit 7747c8dbd6

View File

@ -133,7 +133,7 @@
echo '<input type="hidden" name="courseitemfilter" value="'.$courseitemfilter.'" />';
echo '<input type="hidden" name="courseitemfiltertyp" value="'.$courseitemfiltertyp.'" />';
echo '<input type="hidden" name="courseid" value="'.$courseid.'" />';
$PAGE->requires->js('mod/feedback/feedback.js')->asap();
echo $PAGE->requires->js('mod/feedback/feedback.js')->asap();
$sql = 'select c.id, c.shortname from {course} c, '.
'{feedback_value} fv, {feedback_item} fi '.
'where c.id = fv.course_id and fv.item = fi.id '.