mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-08 20:09:44 +00:00
(js) Delete an event or a task
This commit is contained in:
@@ -872,6 +872,21 @@
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $delete
|
||||
* @memberof Component.prototype
|
||||
* @desc Delete the component from the server.
|
||||
* @param {boolean} occurrenceOnly - delete this occurrence only
|
||||
*/
|
||||
Component.prototype.remove = function(occurrenceOnly) {
|
||||
var _this = this, path = [this.pid, this.id];
|
||||
|
||||
if (occurrenceOnly && this.occurrenceId)
|
||||
path.push(this.occurrenceId);
|
||||
|
||||
return Component.$$resource.remove(path.join('/'));
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $unwrap
|
||||
* @memberof Component.prototype
|
||||
|
||||
Reference in New Issue
Block a user