Skip to content

Commit

Permalink
Merge branch 'MDL-79512-403' of https://github.com/laurentdavid/moodle
Browse files Browse the repository at this point in the history
…into MOODLE_403_STABLE
  • Loading branch information
HuongNV13 committed Nov 29, 2023
2 parents a9bfc20 + 3116b46 commit a6ce3c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mod/feedback/yui/dragdrop/dragdrop.js
Expand Up @@ -171,7 +171,7 @@ YUI.add('moodle-mod_feedback-dragdrop', function(Y) {
var elementId;
var elements = [];
drop.all(CSS.DRAGITEM).each(function(v) {
childElement = v.one('.felement').one('[id^="feedback_item_"]');
childElement = v.one('.felement')?.one('[id^="feedback_item_"]');
if (childElement) {
elementId = this.get_node_id(childElement.get('id'));
if (elements.indexOf(elementId) == -1) {
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit a6ce3c0

Please sign in to comment.