(fix) XSRF supprot for all contact operations

This commit is contained in:
Ludovic Marcotte
2016-05-04 14:15:18 -04:00
parent d4fc1775b2
commit 5f2a862bc8
8 changed files with 37 additions and 22 deletions
@@ -202,6 +202,20 @@
}
};
/**
* @function export
* @memberof Card.prototype
* @desc Download the current card
* @returns a promise of the HTTP operation
*/
Card.prototype.export = function() {
var selectedIDs;
selectedIDs = [ this.id ];
return Card.$$resource.download(this.pid, 'export', {uids: selectedIDs}, {type: 'application/octet-stream'});
};
Card.prototype.$fullname = function() {
var fn = this.c_cn || '', names;
if (fn.length === 0) {