* InfoLog/Addressbook: refresh CRM view if InfoLog was edited without having InfoLog tab open

This commit is contained in:
Ralf Becker 2015-02-17 16:21:50 +00:00
parent 39115a0985
commit 93a514993a

View File

@ -100,8 +100,13 @@ app.classes.infolog = AppJS.extend(
} }
} }
} }
//Refresh handler for infologs integrated in calendar // Refresh handler for Addressbook CRM view
if (_app == 'infolog' && _id && _type !='delete') if (_app == 'infolog' && this.et2._inst.app == 'addressbook' && this.et2._inst.name == 'infolog.index')
{
this.et2._inst.refresh(_msg, _app, _id, _type);
}
// Refresh handler for infologs integrated in calendar
if (_app == 'infolog' && _id && _type != 'delete')
{ {
var info_type = egw.dataGetUIDdata(_app+"::"+_id)?egw.dataGetUIDdata(_app+"::"+_id).data.info_type:false; var info_type = egw.dataGetUIDdata(_app+"::"+_id)?egw.dataGetUIDdata(_app+"::"+_id).data.info_type:false;
var cal_show = egw.preference('cal_show','infolog')||false; var cal_show = egw.preference('cal_show','infolog')||false;