Fix mail import message dialog

This commit is contained in:
Hadi Nategh 2014-08-22 13:40:25 +00:00
parent 6cc7ff661d
commit 1889f9f1aa
4 changed files with 40 additions and 14 deletions

View File

@ -570,7 +570,7 @@ class mail_hooks
);
$file += array(
'import message' => "javascript:egw_openWindowCentered2('".egw::link('/index.php', $linkData,false)."','importMessageDialog',870,125,'no','$appname');",
'import message' => "javascript:egw_openWindowCentered2('".egw::link('/index.php', $linkData,false)."','importMessageDialog',600,100,'no','$appname');",
);
}

View File

@ -682,7 +682,13 @@ div.mailPreviewHeaders #mail-index_previewAttachmentArea.visible {
height: 500px;
overflow: auto;
}
.mail_importMessageFile{
width: 40%;
}
#mail-importMessage .dialogHeader {
font-weight: bold;
font-size:150%;
}
/* MAIL PRINT */
@media print {
.mailDisplayHeaders {

View File

@ -2,17 +2,30 @@
<!-- $Id$ -->
<overlay>
<template id="mail.importMessage" template="" lang="" group="0" version="1.9.001">
<html id="msg"/>
<hbox class="dialogHeader" width="100%" >
<description value="Import message" align="center" class="dialogHeader"/>
</hbox>
<vbox id="divImportArea">
<hbox span="all">
<description value="Store to Folder"/>
<taglist id="FOLDER" width="50%" autocomplete_url='mail.mail_compose.ajax_searchFolder' autocomplete_params='' maxSelection="1" allowFreeEntries="false" onclick="app.mail.address_click"/>
<vfs-select id="vfsfile" mode="open" mime="message/rfc822" onchange="app.mail.vfsUploadForImport"/>
<file statustext="Select file to import into Folder" onFinish="app.mail.uploadForImport" mime="/^message\//i" id="uploadForImport" drop_target ="mail-importMessage_divImportArea"/>
</hbox>
</vbox>>
<grid width="100%">
<columns>
<column width="100"/>
<column/>
</columns>
<rows>
<row class="dialogHeader">
<description value="Import message" align="center" span="all" class="et2_fullWidth"/>
</row>
<row>
<description value="Store to Folder"/>
<taglist id="FOLDER" autocomplete_url='mail.mail_compose.ajax_searchFolder' autocomplete_params='' maxSelection="1" allowFreeEntries="false" onclick="app.mail.address_click"/>
</row>
<row>
<description value="Choose file"/>
<hbox>
<vfs-select id="vfsfile" button_caption = "" mode="open" mime="message/rfc822" onchange="app.mail.vfsUploadForImport"/>
<file statustext="Select file to import into Folder" onFinish="app.mail.uploadForImport" mime="/^message\//i" id="uploadForImport" drop_target ="mail-importMessage" class="mail_importMessageFile"/>
</hbox>
</row>
<row class="dialogFooterToolbar">
<buttononly statustext="Closes this window" label="Close" onclick="window.close();" image="close" background_image="1"/>
</row>
</rows>
</grid>
</template>
</overlay>

View File

@ -676,6 +676,13 @@ div.mailPreviewHeaders #mail-index_previewAttachmentArea.visible {
height: 500px;
overflow: auto;
}
.mail_importMessageFile {
width: 40%;
}
#mail-importMessage .dialogHeader {
font-weight: bold;
font-size: 150%;
}
/* MAIL PRINT */
@media print {
.mailDisplayHeaders {