Commit c2f12b0d authored by Frederic Massart's avatar Frederic Massart Committed by Dan Poltawski
Browse files

MDL-55831 mod_quiz: Fix selectors to handle renderer overrides

Part of MDL-55071
parent 132093f0
......@@ -560,8 +560,8 @@ table.quizreviewsummary td.cell {
position: relative;
}
#page-mod-quiz-edit ul.section li.pagenumber:first-child .add-menu-outer ul.menu li:first-child,
#page-mod-quiz-edit .last-add-menu .add-menu-outer ul.menu li:first-child {
#page-mod-quiz-edit ul.section li.pagenumber:first-child .add-menu-outer .menu :first-child,
#page-mod-quiz-edit .last-add-menu .add-menu-outer .menu :first-child {
display: none;
}
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
var CSS = {
ADDNEWQUESTIONBUTTONS: 'ul.menu a.addquestion',
ADDNEWQUESTIONBUTTONS: '.menu [data-action="addquestion"]',
CREATENEWQUESTION: 'div.createnewquestion',
CHOOSERDIALOGUE: 'div.chooserdialogue',
CHOOSERHEADER: 'div.choosertitle'
......
......@@ -24,7 +24,7 @@
var CSS = {
QBANKLOADING: 'div.questionbankloading',
ADDQUESTIONLINKS: 'ul.menu a.questionbank',
ADDQUESTIONLINKS: '.menu [data-action="questionbank"]',
ADDTOQUIZCONTAINER: 'td.addtoquizaction',
PREVIEWCONTAINER: 'td.previewaction',
SEARCHOPTIONS: '#advancedsearch'
......
......@@ -25,7 +25,7 @@
var CSS = {
RANDOMQUESTIONFORM: 'div.randomquestionformforpopup',
PAGEHIDDENINPUT: 'input#rform_qpage',
RANDOMQUESTIONLINKS: 'ul.menu a.addarandomquestion'
RANDOMQUESTIONLINKS: '.menu [data-action="addarandomquestion"]'
};
var PARAMS = {
......
......@@ -28,8 +28,9 @@ Y.Moodle.mod_quiz.util.page = {
},
SELECTORS: {
ACTIONMENU: 'div.moodle-actionmenu',
ACTIONMENUBAR: 'ul.menubar',
ACTIONMENUMENU: 'ul.menu',
ACTIONMENUBAR: '.menubar',
ACTIONMENUMENU: '.menu',
ADDASECTION: '[data-action="addasection"]',
PAGE: 'li.page',
INSTANCENAME: '.instancename',
NUMBER: 'h4'
......@@ -285,8 +286,8 @@ Y.Moodle.mod_quiz.util.page = {
menumenu.set('id', this.CONSTANTS.ACTIONMENUIDPREFIX + id + this.CONSTANTS.ACTIONMENUMENUIDSUFFIX);
// Update the URL of the add-section action.
menumenu.one('a.addasection').set('href',
menumenu.one('a.addasection').get('href').replace(/\baddsectionatpage=\d/, 'addsectionatpage=' + id));
menumenu.one(this.SELECTORS.ADDASECTION).set('href',
menumenu.one(this.SELECTORS.ADDASECTION).get('href').replace(/\baddsectionatpage=\d/, 'addsectionatpage=' + id));
}, this);
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment