Merge branch 'MDL-64274-master' of git://github.com/ryanwyllie/moodle
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -524,7 +524,7 @@ define(['jquery', 'core/ajax', 'core/notification'], function($, Ajax, Notificat
|
||||
* @return {object} jQuery promise
|
||||
*/
|
||||
var deleteMessages = function(userId, messageIds) {
|
||||
return Ajax.call(messageIds.map(function(messageId) {
|
||||
return $.when.apply(null, Ajax.call(messageIds.map(function(messageId) {
|
||||
return {
|
||||
methodname: 'core_message_delete_message',
|
||||
args: {
|
||||
@@ -532,7 +532,7 @@ define(['jquery', 'core/ajax', 'core/notification'], function($, Ajax, Notificat
|
||||
userid: userId
|
||||
}
|
||||
};
|
||||
}));
|
||||
})));
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user