MDL-47547 quiz editing: minor fixes following MDL-47547
authorTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 6 Oct 2014 14:44:21 +0000 (15:44 +0100)
committerTim Hunt <T.J.Hunt@open.ac.uk>
Mon, 6 Oct 2014 14:44:21 +0000 (15:44 +0100)
* Remove unnecessary skip links.
* Disable shortforms for form in pop-ups.
* Remove some CSS that was hurting display of the add menu.

mod/quiz/addrandomform.php
mod/quiz/edit.php
mod/quiz/styles.css

index 0cce142..f66832e 100644 (file)
@@ -39,6 +39,7 @@ class quiz_add_random_form extends moodleform {
     protected function definition() {
         global $CFG, $DB;
         $mform =& $this->_form;
+        $mform->setDisableShortforms();
 
         $contexts = $this->_customdata['contexts'];
         $usablecontexts = $contexts->having_cap('moodle/question:useall');
index 8b57268..caa882a 100644 (file)
@@ -292,10 +292,6 @@ $PAGE->set_pagetype('mod-quiz-edit');
 
 $output = $PAGE->get_renderer('mod_quiz', 'edit');
 
-$PAGE->requires->skip_link_to('questionbank',
-        get_string('skipto', 'access', get_string('questionbank', 'question')));
-$PAGE->requires->skip_link_to('quizcontentsblock',
-        get_string('skipto', 'access', get_string('questionsinthisquiz', 'quiz')));
 $PAGE->set_title(get_string('editingquizx', 'quiz', format_string($quiz->name)));
 $PAGE->set_heading($course->fullname);
 $node = $PAGE->settingsnav->find('mod_quiz_edit', navigation_node::TYPE_SETTING);
index 92e752f..901cd97 100644 (file)
@@ -541,10 +541,6 @@ table.quizreviewsummary td.cell {
     top: 0;
     right: 0;
 }
-#page-mod-quiz-edit .add-menu {
-    max-height: 20px;
-    width:10em;
-}
 #page-mod-quiz-edit .slotnumber {
     background-color: #D3D3D3;
     text-align: center;