using regular egw.open for calls too

This commit is contained in:
Ralf Becker 2021-03-07 22:27:38 +02:00
parent 75973a2be1
commit 558b41f11a
2 changed files with 2 additions and 31 deletions

View File

@ -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);
}
break;
case 'cancel':
default:

View File

@ -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);
}
break;
case 'cancel':
default: