From 2a2aba273fd3137e6f04c32e7b7d287aeaf71ce7 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sat, 8 Apr 2006 08:22:18 +0000 Subject: [PATCH] submit button for teacher comment is now included in question_print_comment_box --- lib/questionlib.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/lib/questionlib.php b/lib/questionlib.php index c8d27c5bde..1d652d80f2 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1169,17 +1169,21 @@ function get_question_image($question, $courseid) { } function question_print_comment_box($question, $state, $attempt, $url) { - global $CFG; - if ($usehtmleditor = can_use_richtext_editor()) { - use_html_editor('comment'); - } - $grade = round($state->last_graded->grade, 3); - echo '
'; - include($CFG->dirroot.'/question/comment.html'); - echo ''; - echo ''; - echo ''; - echo '
'; + global $CFG; + + $usehtmleditor = can_use_richtext_editor(); + $grade = round($state->last_graded->grade, 3); + echo '
'; + include($CFG->dirroot.'/question/comment.html'); + echo ''; + echo ''; + echo ''; + echo ''; + echo '
'; + + if ($usehtmleditor) { + use_html_editor('comment'); + } } function question_process_comment($question, &$state, &$attempt, $comment, $grade) { -- 2.39.5