(fix) completed the required modifications for XSRF in the mail module

This commit is contained in:
Ludovic Marcotte
2016-05-04 11:12:30 -04:00
parent 993ff15e7f
commit de0540c784
6 changed files with 26 additions and 12 deletions
@@ -662,4 +662,18 @@
return message;
};
/**
* @function saveMessage
* @memberof Message.prototype
* @desc Download the current message
* @returns a promise of the HTTP operation
*/
Message.prototype.saveMessage = function() {
var selectedUIDs;
selectedUIDs = [ this.uid ];
return this.$mailbox.constructor.$$resource.download(this.$mailbox.id, 'saveMessages', {uids: selectedUIDs});
};
})();