mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
S/MIME:
- Activate smime actions for mobile view - Read and set attachments for mobile view
This commit is contained in:
parent
673f1b1c9a
commit
516015ac40
@ -1051,9 +1051,9 @@ app.classes.mail = AppJS.extend(
|
|||||||
jQuery(IframeHandle.getDOMNode()).on('load', function(e){
|
jQuery(IframeHandle.getDOMNode()).on('load', function(e){
|
||||||
self.resolveExternalImages (this.contentWindow.document);
|
self.resolveExternalImages (this.contentWindow.document);
|
||||||
});
|
});
|
||||||
if (dataElem.data['smime']) this.smimeAttachmentsCheckerInterval();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (dataElem.data['smime']) this.smimeAttachmentsCheckerInterval();
|
||||||
var messages = {};
|
var messages = {};
|
||||||
messages['msg'] = [_id];
|
messages['msg'] = [_id];
|
||||||
|
|
||||||
@ -5777,6 +5777,21 @@ app.classes.mail = AppJS.extend(
|
|||||||
}, et2_dialog._create_parent('mail'));
|
}, 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
|
* Set attachments of smime message
|
||||||
*
|
*
|
||||||
@ -5784,6 +5799,11 @@ app.classes.mail = AppJS.extend(
|
|||||||
*/
|
*/
|
||||||
set_smimeAttachments:function (_attachments)
|
set_smimeAttachments:function (_attachments)
|
||||||
{
|
{
|
||||||
|
if (egwIsMobile())
|
||||||
|
{
|
||||||
|
this.set_smimeAttachmentsMobile(_attachments);
|
||||||
|
return;
|
||||||
|
}
|
||||||
var attachmentArea = this.et2.getWidgetById(egw(window).is_popup()?'mail_displayattachments':'previewAttachmentArea');
|
var attachmentArea = this.et2.getWidgetById(egw(window).is_popup()?'mail_displayattachments':'previewAttachmentArea');
|
||||||
var content = this.et2.getArrayMgr('content');
|
var content = this.et2.getArrayMgr('content');
|
||||||
var mailPreview = this.et2.getWidgetById('mailPreviewContainer');
|
var mailPreview = this.et2.getWidgetById('mailPreviewContainer');
|
||||||
|
@ -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 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 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 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>
|
<menulist>
|
||||||
<menupopup id="priority"/>
|
<menupopup id="priority"/>
|
||||||
</menulist>
|
</menulist>
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
<time_or_date align="center" class="$row_cont[class]" id="${row}[date]" readonly="true"/>
|
<time_or_date align="center" class="$row_cont[class]" id="${row}[date]" readonly="true"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
<hbox>
|
<hbox>
|
||||||
|
<image src="$row_cont[smime]" height="16px"/>
|
||||||
<html id="${row}[attachments]"/>
|
<html id="${row}[attachments]"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
Loading…
Reference in New Issue
Block a user