* 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:22:08 +00:00
parent e957750106
commit a7708a8773

View File

@ -100,8 +100,13 @@ app.classes.infolog = AppJS.extend(
}
}
}
//Refresh handler for infologs integrated in calendar
if (_app == 'infolog' && _id && _type !='delete')
// Refresh handler for Addressbook CRM view
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 cal_show = egw.preference('cal_show','infolog')||false;