Small change to question_print_comment_box() to allow multiple boxes on one page

This commit is contained in:
gustav_delius
2006-04-09 22:48:58 +00:00
parent cf156ab045
commit 848d886edb
+2 -1
View File
@@ -1171,6 +1171,7 @@ function get_question_image($question, $courseid) {
function question_print_comment_box($question, $state, $attempt, $url) {
global $CFG;
$prefix = 'response';
$usehtmleditor = can_use_richtext_editor();
$grade = round($state->last_graded->grade, 3);
echo '<form method="post" action="'.$url.'">';
@@ -1182,7 +1183,7 @@ function question_print_comment_box($question, $state, $attempt, $url) {
echo '</form>';
if ($usehtmleditor) {
use_html_editor('comment');
use_html_editor();
}
}