mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
MDL-79512 mod_feedback: Add toast dialog when saved
* Add notification to notify the user once the changes have been successfully saved
This commit is contained in:
parent
33391e08c2
commit
2b2cf76577
5
mod/feedback/yui/dragdrop/dragdrop.js
vendored
5
mod/feedback/yui/dragdrop/dragdrop.js
vendored
@ -215,6 +215,11 @@ YUI.add('moodle-mod_feedback-dragdrop', function(Y) {
|
||||
window.setTimeout(function(e) {
|
||||
spinner.hide();
|
||||
}, 250);
|
||||
require(['core/notification', 'core/str', 'core/toast'], function(Notification, Strings, Toast) {
|
||||
Strings.get_string('changessaved', 'core').then(function(saveString) {
|
||||
return Toast.add(saveString);
|
||||
}).catch(Notification.exception);
|
||||
});
|
||||
},
|
||||
failure : function(transactionid, xhr) {
|
||||
var msg = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user