Calendar display:

- Fix infolog entries are displayed multiple times when you drag & drop to move them
This commit is contained in:
Nathan Gray 2015-11-09 18:55:48 +00:00
parent 5338abb152
commit 809c35e97d

View File

@ -104,7 +104,7 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
// Unregister, or we'll continue to be notified... // Unregister, or we'll continue to be notified...
if(this.options.value) if(this.options.value)
{ {
var old_app_id = this.options.value.app_id ? this.options.value.app_id : this.options.value.id + (this.options.value.recur_type ? ':'+this.options.value.recur_date : ''); var old_app_id = this.options.value.id + (this.options.value.recur_type ? ':'+this.options.value.recur_date : '');
egw.dataUnregisterUID('calendar::'+old_app_id,false,this); egw.dataUnregisterUID('calendar::'+old_app_id,false,this);
} }
}, },
@ -113,13 +113,13 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
// Un-register for updates // Un-register for updates
if(this.options.value) if(this.options.value)
{ {
var old_app_id = this.options.value.app_id ? this.options.value.app_id : this.options.value.id + (this.options.value.recur_type ? ':'+this.options.value.recur_date : ''); var old_app_id = this.options.value.id + (this.options.value.recur_type ? ':'+this.options.value.recur_date : '');
egw.dataUnregisterUID('calendar::'+old_app_id,false,this); egw.dataUnregisterUID('calendar::'+old_app_id,false,this);
} }
this.options.value = _value; this.options.value = _value;
// Register for updates // Register for updates
var app_id = this.options.value.app_id ? this.options.value.app_id : this.options.value.id + (this.options.value.recur_type ? ':'+this.options.value.recur_date : ''); var app_id = this.options.value.id + (this.options.value.recur_type ? ':'+this.options.value.recur_date : '');
egw.dataRegisterUID('calendar::'+app_id, function(event) { egw.dataRegisterUID('calendar::'+app_id, function(event) {
// Check for changing days in the grid view // Check for changing days in the grid view
if(this._parent && this._parent.instanceOf(et2_calendar_daycol) && if(this._parent && this._parent.instanceOf(et2_calendar_daycol) &&