mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
Mail: Fix creating tracker ticket out of email fails due to error
Exception "Et2Dialog._create_parent is not a function"
This commit is contained in:
parent
5c5a483414
commit
297c70d4fe
@ -3273,8 +3273,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
{label: app.mail.egw.lang('Add as new'), id: 'new', image: 'check'},
|
{label: app.mail.egw.lang('Add as new'), id: 'new', image: 'check'},
|
||||||
{label: app.mail.egw.lang('Cancel'), id: 'cancel', image: 'check'}
|
{label: app.mail.egw.lang('Cancel'), id: 'cancel', image: 'check'}
|
||||||
];
|
];
|
||||||
et2_createWidget("dialog",
|
const dialog = new Et2Dialog(this.egw);
|
||||||
{
|
dialog.transformAttributes({
|
||||||
callback: function (_buttons, _value)
|
callback: function (_buttons, _value)
|
||||||
{
|
{
|
||||||
if (_buttons == 'cancel')
|
if (_buttons == 'cancel')
|
||||||
@ -3295,7 +3295,8 @@ app.classes.mail = AppJS.extend(
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: egw.webserverUrl + '/mail/templates/default/integration_to_entry_dialog.xet'
|
template: egw.webserverUrl + '/mail/templates/default/integration_to_entry_dialog.xet'
|
||||||
}, Et2Dialog._create_parent('mail'));
|
});
|
||||||
|
document.body.appendChild(dialog);
|
||||||
}
|
}
|
||||||
else // there is an entry saved related to this mail's subject
|
else // there is an entry saved related to this mail's subject
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user