forked from extern/egroupware
using regular egw.open for calls too
This commit is contained in:
parent
75973a2be1
commit
558b41f11a
@ -1058,20 +1058,7 @@ var et2_calendar_event = /** @class */ (function (_super) {
|
||||
break;
|
||||
case 'series':
|
||||
case 'single':
|
||||
// ToDo: find a nicer way to open CRM view for calls
|
||||
if (event_data.app === 'stylite') {
|
||||
var contact_id = void 0;
|
||||
for (var uid in event_data.participants) {
|
||||
if (typeof uid === 'string' && uid[0] === 'c') {
|
||||
contact_id = parseInt(uid.substr(1));
|
||||
}
|
||||
}
|
||||
if (contact_id)
|
||||
app.calendar.openCRMview({}, contact_id);
|
||||
}
|
||||
else {
|
||||
egw.open(edit_id, event_data.app || 'calendar', 'edit', extra_params);
|
||||
}
|
||||
egw.open(edit_id, event_data.app || 'calendar', 'edit', extra_params);
|
||||
break;
|
||||
case 'cancel':
|
||||
default:
|
||||
|
@ -1335,23 +1335,7 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached
|
||||
break;
|
||||
case 'series':
|
||||
case 'single':
|
||||
// ToDo: find a nicer way to open CRM view for calls
|
||||
if (event_data.app === 'stylite')
|
||||
{
|
||||
let contact_id;
|
||||
for(let uid in event_data.participants)
|
||||
{
|
||||
if (typeof uid === 'string' && uid[0] === 'c')
|
||||
{
|
||||
contact_id = parseInt(uid.substr(1));
|
||||
}
|
||||
}
|
||||
if (contact_id) app.calendar.openCRMview({}, contact_id);
|
||||
}
|
||||
else
|
||||
{
|
||||
egw.open(edit_id, event_data.app||'calendar', 'edit', extra_params);
|
||||
}
|
||||
egw.open(edit_id, event_data.app||'calendar', 'edit', extra_params);
|
||||
break;
|
||||
case 'cancel':
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user