mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
allow to choose forward mode on rightclick action (forward inline OR forward as attachment)
This commit is contained in:
parent
2ed265a7fb
commit
22746362c9
@ -340,7 +340,21 @@ class uiwidgets
|
||||
'caption' => 'Forward',
|
||||
'icon' => 'mail_forward',
|
||||
'group' => $group,
|
||||
'onExecute' => 'javaScript:mail_compose',
|
||||
'children' => array(
|
||||
'forwardinline' => array(
|
||||
'caption' => 'forward inline',
|
||||
'icon' => 'mail_forward',
|
||||
'group' => $group,
|
||||
'onExecute' => 'javaScript:mail_compose',
|
||||
'allowOnMultiple' => false,
|
||||
),
|
||||
'forwardasattach' => array(
|
||||
'caption' => 'forward as attachment',
|
||||
'icon' => 'mail_forward',
|
||||
'group' => $group,
|
||||
'onExecute' => 'javaScript:mail_compose',
|
||||
),
|
||||
),
|
||||
),
|
||||
'composeasnew' => array(
|
||||
'caption' => 'Compose as new',
|
||||
|
@ -184,12 +184,12 @@ function mail_compose(_action, _elems)
|
||||
url += '&reply_id='+_elems[0].id;
|
||||
egw_openWindowCentered(url,'replyAll_'+_elems[0].id,700,egw_getWindowOuterHeight());
|
||||
}
|
||||
if (_action.id == 'forward')
|
||||
if (_action.id == 'forward'||_action.id == 'forwardinline'||_action.id == 'forwardasattach')
|
||||
{
|
||||
if (multipleIds)
|
||||
if (multipleIds||_action.id == 'forwardasattach')
|
||||
{
|
||||
url += 'menuaction=felamimail.uicompose.compose';
|
||||
mail_openComposeWindow(url)
|
||||
mail_openComposeWindow(url,_action.id == 'forwardasattach');
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -900,7 +900,7 @@ function mail_openComposeWindow(_url,forwardByCompose) {
|
||||
//sMessageList.concat(',');
|
||||
}
|
||||
}
|
||||
if (prefAskForMultipleForward == 1 && Check == true && alreadyAsked == false && sMessageList.length >0)
|
||||
if (prefAskForMultipleForward == 1 && Check == true && alreadyAsked == false && sMessageList.length >0 && _messageList['msg'].length>1)
|
||||
{
|
||||
askme = egw_appWindow('felamimail').lang_multipleforward;
|
||||
//if (cbAllMessages == true || cbAllVisibleMessages == true) askme = egw_appWindow('felamimail').lang_confirm_all_messages; // not supported
|
||||
|
Loading…
Reference in New Issue
Block a user