Skip to content

Commit

Permalink
MDL-77174 mod_quiz: Remove usage of moodle-core-nofification-alert
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jul 31, 2023
1 parent 4357548 commit d20b272
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
Expand Up @@ -484,12 +484,12 @@ Y.extend(RESOURCETOOLBOX, TOOLBOX, {
var problemsection = this.find_sections_that_would_become_empty();

if (typeof problemsection !== 'undefined') {
var alert = new M.core.alert({
title: M.util.get_string('cannotremoveslots', 'quiz'),
message: M.util.get_string('cannotremoveallsectionslots', 'quiz', problemsection)
require(['core/notification'], function(Notification) {
Notification.alert(
M.util.get_string('cannotremoveslots', 'quiz'),
M.util.get_string('cannotremoveallsectionslots', 'quiz', problemsection)
);
});

alert.show();
} else {
this.delete_multiple_with_confirmation(ev);
}
Expand Down

0 comments on commit d20b272

Please sign in to comment.