mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-77174 mod_quiz: Remove usage of moodle-core-nofification-alert
This commit is contained in:
parent
43575489e9
commit
d20b272df7
@ -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);
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -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);
|
||||
}
|
||||
|
10
mod/quiz/yui/src/toolboxes/js/resource.js
vendored
10
mod/quiz/yui/src/toolboxes/js/resource.js
vendored
@ -251,12 +251,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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user