- Activate smime actions for mobile view
- Read and set attachments for mobile view
This commit is contained in:
Hadi Nategh 2017-09-13 18:17:32 +02:00
parent 673f1b1c9a
commit 516015ac40
3 changed files with 26 additions and 2 deletions

View File

@ -1051,9 +1051,9 @@ app.classes.mail = AppJS.extend(
jQuery(IframeHandle.getDOMNode()).on('load', function(e){
self.resolveExternalImages (this.contentWindow.document);
});
if (dataElem.data['smime']) this.smimeAttachmentsCheckerInterval();
}
}
if (dataElem.data['smime']) this.smimeAttachmentsCheckerInterval();
var messages = {};
messages['msg'] = [_id];
@ -5777,6 +5777,21 @@ app.classes.mail = AppJS.extend(
}, et2_dialog._create_parent('mail'));
},
/**
* set attachments of smime message for mobile view
* @param {type} _attachments
*/
set_smimeAttachmentsMobile: function (_attachments)
{
var attachmentsBlock = this.et2_view.widgetContainer.getWidgetById('attachmentsBlock');
var $attachment = jQuery('.et2_details.attachments');
if (attachmentsBlock && _attachments.length > 0)
{
attachmentsBlock.set_value({content:_attachments});
$attachment.show();
}
},
/**
* Set attachments of smime message
*
@ -5784,6 +5799,11 @@ app.classes.mail = AppJS.extend(
*/
set_smimeAttachments:function (_attachments)
{
if (egwIsMobile())
{
this.set_smimeAttachmentsMobile(_attachments);
return;
}
var attachmentArea = this.et2.getWidgetById(egw(window).is_popup()?'mail_displayattachments':'previewAttachmentArea');
var content = this.et2.getArrayMgr('content');
var mailPreview = this.et2.getWidgetById('mailPreviewContainer');

View File

@ -17,6 +17,9 @@
<checkbox statustext="check to save as tracker entry on send" id="to_tracker" options="on,off"/>
<checkbox statustext="check to save as calendar event on send" id="to_calendar" options="on,off"/>
<checkbox statustext="check to receive a notification when the message is read (note: not all clients support this and/or the receiver may not authorize the notification)" id="disposition" options="on,off"/>
<checkbox statustext="check to sign the message on send" id="smime_sign" options="on,off"/>
<checkbox statustext="check to encrypt the message on send" id="smime_encrypt" options="on,off"/>
<passwd id="smime_passphrase"/>
<menulist>
<menupopup id="priority"/>
</menulist>

View File

@ -28,6 +28,7 @@
<time_or_date align="center" class="$row_cont[class]" id="${row}[date]" readonly="true"/>
</hbox>
<hbox>
<image src="$row_cont[smime]" height="16px"/>
<html id="${row}[attachments]"/>
</hbox>
</vbox>