From 90c2f510311856ef96b664d3d134c2db357f2390 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Tue, 18 Jan 2011 23:30:40 +0000 Subject: [PATCH] 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. --- question/type/multianswer/questiontype.php | 6 ------ 1 file changed, 6 deletions(-) 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; -- 2.36.1