mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-20 15:44:53 +00:00
Handle attendee conflicts in the Web interface
See @d7b010
This commit is contained in:
@@ -414,6 +414,15 @@
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $resetGhost
|
||||
* @desc Prepare the ghost object for the next drag by resetting appropriate attributes
|
||||
*/
|
||||
Component.$resetGhost = function() {
|
||||
this.$ghost.pointerHandler = null;
|
||||
this.$ghost.component = null;
|
||||
};
|
||||
|
||||
/**
|
||||
* @function $parseDate
|
||||
* @desc Parse a date string with format YYYY-MM-DDTHH:MM
|
||||
@@ -1035,8 +1044,9 @@
|
||||
* @function $save
|
||||
* @memberof Component.prototype
|
||||
* @desc Save the component to the server.
|
||||
* @param {object} extraAttributes - additional attributes to send to the server
|
||||
*/
|
||||
Component.prototype.$save = function() {
|
||||
Component.prototype.$save = function(extraAttributes) {
|
||||
var _this = this, options, path, component, date, dlp;
|
||||
|
||||
component = this.$omit();
|
||||
@@ -1106,6 +1116,8 @@
|
||||
if (this.occurrenceId)
|
||||
path.push(this.occurrenceId);
|
||||
|
||||
angular.extend(component, extraAttributes);
|
||||
|
||||
return Component.$$resource.save(path.join('/'), component, options)
|
||||
.then(function(data) {
|
||||
// Make a copy of the data for an eventual reset
|
||||
|
||||
Reference in New Issue
Block a user