From: Tim Hunt Date: Tue, 18 Jan 2011 23:30:40 +0000 (+0000) Subject: qtype_multianswer MDL-25841 feedback pop-up was appearing in the wrong place. X-Git-Tag: v2.0.2~174^2 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=90c2f510311856ef96b664d3d134c2db357f2390 qtype_multianswer MDL-25841 feedback pop-up was appearing in the wrong place. It seems that overlib was getting confused by its div being inside another positioned div. The simplest solution is to not create the div at all. Then the overlib JS creates it when needed, and that works. --- diff --git a/question/type/multianswer/questiontype.php b/question/type/multianswer/questiontype.php index 1c713f20064..012cc4314f0 100644 --- a/question/type/multianswer/questiontype.php +++ b/question/type/multianswer/questiontype.php @@ -278,12 +278,6 @@ class embedded_cloze_qtype extends default_questiontype { function print_question_formulation_and_controls(&$question, &$state, $cmoptions, $options) { global $QTYPES, $CFG, $USER, $OUTPUT, $PAGE; - static $overlibdivoutput = false; - if (!$overlibdivoutput) { - echo ''; // for overlib - $overlibdivoutput = true; - } - $readonly = empty($options->readonly) ? '' : 'readonly="readonly"'; $disabled = empty($options->readonly) ? '' : 'disabled="disabled"'; $formatoptions = new stdClass;