Skip to content

Commit

Permalink
mod-quiz MDL-22261 Fixed JavaScript issue with body id
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed May 1, 2010
1 parent 7f084ec commit 57638e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ function quiz_settings_init() {
// Depending on which page this is, do the appropriate initialisation.
function quiz_edit_generic_init() {
switch (document.body.id) {
case 'mod-quiz-edit':
case 'page-mod-quiz-edit':
quiz_edit_init();
break;
case 'mod-quiz-mod':
case 'page-mod-quiz-mod':
quiz_settings_init();
}
}
Expand Down

0 comments on commit 57638e2

Please sign in to comment.