Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-27716_19' of git://github.com/timhunt/moodle into M…

…OODLE_19_STABLE
  • Loading branch information...
commit c74a93d0175ac91854cb61ba1fe9d81d9e07989f 2 parents 6c56155 + 96aec10
@samhemelryk samhemelryk authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 question/type/multianswer/questiontype.php
View
5 question/type/multianswer/questiontype.php
@@ -292,6 +292,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, $testedstate)) {
if ($options->readonly && $options->correct_responses) {
@@ -357,7 +358,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();\" ";
}
@@ -373,7 +374,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();\" ";
}
Please sign in to comment.
Something went wrong with that request. Please try again.