MDL-43089 quiz editing: don't pop up qbank on initial page load.
authorTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 10 Oct 2014 10:00:12 +0000 (11:00 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Fri, 10 Oct 2014 10:00:12 +0000 (11:00 +0100)
mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank-debug.js
mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank-min.js
mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank.js
mod/quiz/yui/src/quizquestionbank/js/quizquestionbank.js

index d71d5f2..cf9daa2 100644 (file)
Binary files a/mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank-debug.js and b/mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank-debug.js differ
index 4de9b38..ad574e5 100644 (file)
Binary files a/mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank-min.js and b/mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank-min.js differ
index b6e30df..a176a6d 100644 (file)
Binary files a/mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank.js and b/mod/quiz/yui/build/moodle-mod_quiz-quizquestionbank/moodle-mod_quiz-quizquestionbank.js differ
index d921045..d21ee3c 100644 (file)
@@ -143,9 +143,11 @@ Y.extend(POPUP, Y.Base, {
         // on the previous line, and fix things like makeResponsive.
         // However, it does not. So the next two lines are a hack to fix up
         // display issues (e.g. overall scrollbars on the page). Once the base class
-        // is fixed, this comment and the following two lines should be deleted.
-        this.dialogue.hide();
-        this.dialogue.show();
+        // is fixed, this comment and the following four lines should be deleted.
+        if (this.dialogue.get('visible')) {
+            this.dialogue.hide();
+            this.dialogue.show();
+        }
     },
 
     load_failed: function() {