diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index d6734011f0c59..8a953834d1a6e 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -324,6 +324,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions $feedback = '' ; $correctanswer = ''; $strfeedbackwrapped = $strfeedback; + $strclosewindow = get_string('close', 'editor'); $testedstate = clone($state); if ($correctanswers = $QTYPES[$wrapped->qtype]->get_correct_responses($wrapped, $state)) { if ($options->readonly && $options->correct_responses) { @@ -390,7 +391,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions }else { $strfeedbackwrapped = get_string('feedback', 'quiz'); } - $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF');\" ". + $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF', CLOSETEXT, '$strclosewindow');\" ". " onmouseout=\"return nd();\" "; } @@ -406,7 +407,7 @@ function print_question_formulation_and_controls(&$question, &$state, $cmoptions if ($feedback !='' && $popup == ''){ $strfeedbackwrapped = get_string('correctanswer', 'qtype_multianswer'); $feedback = s(str_replace(array("\\", "'"), array("\\\\", "\\'"), $feedback)); - $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF');\" ". + $popup = " onmouseover=\"return overlib('$feedback', STICKY, MOUSEOFF, CAPTION, '$strfeedbackwrapped', FGCOLOR, '#FFFFFF', CLOSETEXT, '$strclosewindow');\" ". " onmouseout=\"return nd();\" "; }