mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
mod-quiz MDL-22261 Fixed JavaScript issue with body id
This commit is contained in:
parent
7f084ec6b1
commit
57638e2e2f
1 changed files with 2 additions and 2 deletions
|
@ -100,10 +100,10 @@ function quiz_settings_init() {
|
||||||
// Depending on which page this is, do the appropriate initialisation.
|
// Depending on which page this is, do the appropriate initialisation.
|
||||||
function quiz_edit_generic_init() {
|
function quiz_edit_generic_init() {
|
||||||
switch (document.body.id) {
|
switch (document.body.id) {
|
||||||
case 'mod-quiz-edit':
|
case 'page-mod-quiz-edit':
|
||||||
quiz_edit_init();
|
quiz_edit_init();
|
||||||
break;
|
break;
|
||||||
case 'mod-quiz-mod':
|
case 'page-mod-quiz-mod':
|
||||||
quiz_settings_init();
|
quiz_settings_init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue