mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
Send some refresh commands when deleting
This commit is contained in:
parent
c3464e4552
commit
22e4fc038f
@ -670,6 +670,11 @@ class calendar_uilist extends calendar_ui
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(egw_json_response::isJSONResponse())
|
||||
{
|
||||
egw_json_response::get()->call('egw.refresh','','calendar',$id,'delete');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -690,6 +695,12 @@ class calendar_uilist extends calendar_ui
|
||||
if($this->bo->save($event))
|
||||
{
|
||||
$success++;
|
||||
|
||||
if(egw_json_response::isJSONResponse())
|
||||
{
|
||||
egw_json_response::get()->call('egw.dataStoreUID','calendar::'.$id,$this->to_client($this->bo->read($id,$recur_date)));
|
||||
egw_json_response::get()->call('egw.refresh','','calendar',$id,'edit');
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -708,6 +719,10 @@ class calendar_uilist extends calendar_ui
|
||||
if ($this->bo->set_status($event,$GLOBALS['egw_info']['user']['account_id'],$new_status,$recur_date,
|
||||
false,true,$skip_notification))
|
||||
{
|
||||
if(egw_json_response::isJSONResponse())
|
||||
{
|
||||
egw_json_response::get()->call('egw.dataStoreUID','calendar::'.$id,$this->to_client($this->bo->read($id,$recur_date)));
|
||||
}
|
||||
$success++;
|
||||
//$msg = lang('Status changed');
|
||||
}
|
||||
|
@ -270,6 +270,7 @@ app.classes.calendar = AppJS.extend(
|
||||
if(_type === 'delete')
|
||||
{
|
||||
daywise.splice(daywise.indexOf(_id),1);
|
||||
egw.dataStoreUID('calendar::'+_id, null);
|
||||
}
|
||||
else if (daywise.indexOf(_id) < 0)
|
||||
{
|
||||
|
@ -488,8 +488,8 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
|
||||
_sameday_check: function(event)
|
||||
{
|
||||
// Event somehow got orphaned
|
||||
if(!this._parent)
|
||||
// Event somehow got orphaned, or deleted
|
||||
if(!this._parent || event === null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user