Improve message compose screen

release-0.6
thomascube 17 years ago
parent c7b7269543
commit 7984ece293

@ -1,9 +1,16 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
--------------------------- ---------------------------
2007/09/26 (thomasb)
----------
- Improve message compose screen (closes #1484383)
2007/09/26 (tomekp) 2007/09/26 (tomekp)
----------
- Update polish localization (#1484579) - Update polish localization (#1484579)
2007/09/25 (robin) 2007/09/25 (robin)
---------- ----------
- Enable drag-/dropping of folders to a new parent folder (#1457344) - Enable drag-/dropping of folders to a new parent folder (#1457344)
@ -21,6 +28,7 @@ CHANGELOG RoundCube Webmail
2007/09/19 (thomasb) 2007/09/19 (thomasb)
---------- ----------
- IPv6 Compatability (#1484322), Patch #1484373
- Unlock interface when message sending fails (#1484570) - Unlock interface when message sending fails (#1484570)
- Eval PHP code in template includes (if configured) - Eval PHP code in template includes (if configured)
- Show message when folder is empty. Mo more static text in table (#1484395) - Show message when folder is empty. Mo more static text in table (#1484395)

@ -157,6 +157,10 @@ $labels['showimages'] = 'Bilder anzeigen';
$labels['htmltoggle'] = 'HTML'; $labels['htmltoggle'] = 'HTML';
$labels['plaintoggle'] = 'Klartext'; $labels['plaintoggle'] = 'Klartext';
$labels['addcc'] = 'Cc hinzufügen';
$labels['addbcc'] = 'Bcc hinzufügen';
$labels['addreplyto'] = 'Antwortadresse hinzufügen';
// address book // Adressbuch // address book // Adressbuch
$labels['name'] = 'Anzeigename'; $labels['name'] = 'Anzeigename';

@ -156,6 +156,10 @@ $labels['showimages'] = 'Display images';
$labels['htmltoggle'] = 'HTML'; $labels['htmltoggle'] = 'HTML';
$labels['plaintoggle'] = 'Plain text'; $labels['plaintoggle'] = 'Plain text';
$labels['addcc'] = 'Add Cc';
$labels['addbcc'] = 'Add Bcc';
$labels['addreplyto'] = 'Add Reply-To';
// address boook // address boook
$labels['name'] = 'Display name'; $labels['name'] = 'Display name';

@ -186,7 +186,9 @@ $headers['Subject'] = trim(get_input_value('_subject', RCUBE_INPUT_POST, FALSE,
if (!empty($identity_arr['organization'])) if (!empty($identity_arr['organization']))
$headers['Organization'] = $identity_arr['organization']; $headers['Organization'] = $identity_arr['organization'];
if (!empty($identity_arr['reply-to'])) if (!empty($_POST['_replyto']))
$headers['Reply-To'] = preg_replace($mailto_regexp, $mailto_replace, get_input_value('_replyto', RCUBE_INPUT_POST, TRUE, $message_charset));
else if (!empty($identity_arr['reply-to']))
$headers['Reply-To'] = $identity_arr['reply-to']; $headers['Reply-To'] = $identity_arr['reply-to'];
if (!empty($_SESSION['compose']['reply_msgid'])) if (!empty($_SESSION['compose']['reply_msgid']))

@ -56,7 +56,9 @@
#listcontrols a:visited, #listcontrols a:visited,
#mailboxcontrols a, #mailboxcontrols a,
#mailboxcontrols a:active, #mailboxcontrols a:active,
#mailboxcontrols a:visited #mailboxcontrols a:visited,
td.formlinks a,
td.formlinks a:visited
{ {
color: #999999; color: #999999;
font-size: 11px; font-size: 11px;
@ -68,7 +70,9 @@
#listcontrols a.active:visited, #listcontrols a.active:visited,
#mailboxcontrols a.active, #mailboxcontrols a.active,
#mailboxcontrols a.active:active, #mailboxcontrols a.active:active,
#mailboxcontrols a.active:visited #mailboxcontrols a.active:visited,
td.formlinks a,
td.formlinks a:visited
{ {
color: #CC0000; color: #CC0000;
} }
@ -700,18 +704,10 @@ div.message-part blockquote blockquote blockquote
/** message compose styles */ /** message compose styles */
#priority-selector #priority-selector,
{
position: absolute;
left: 280px;
top: 10px;
}
#receipt-selector #receipt-selector
{ {
position: absolute; padding-left: 30px;
left: 450px;
top: 10px;
} }
#compose-container #compose-container
@ -776,24 +772,10 @@ div.message-part blockquote blockquote blockquote
white-space: nowrap; white-space: nowrap;
} }
#compose-headers td.add-button
{
width: 40px !important;
text-align: right;
vertical-align: bottom;
}
#compose-headers td.add-button a
{
color: #666666;
font-size: 11px;
text-decoration: none;
}
#compose-headers td textarea #compose-headers td textarea
{ {
width: 100%; width: 100%;
height: 40px; height: 38px;
} }
#compose-headers td input #compose-headers td input
@ -812,7 +794,7 @@ div.message-part blockquote blockquote blockquote
{ {
margin-top: 5px; margin-top: 5px;
margin-bottom: 10px; margin-bottom: 10px;
width: 99%; width: 100%;
height: 90%; height: 90%;
min-height: 280px; min-height: 280px;
font-size: 9pt; font-size: 9pt;

@ -8,17 +8,40 @@
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
function rcmail_toggle_display(id) function rcmail_show_header_form(id, link)
{ {
var row, disp; var row, ns, ps;
if (row = document.getElementById(id)) if (row = document.getElementById(id))
{ row.style.display = (document.all && !window.opera) ? 'block' : 'table-row';
disp = (!row.style.display || row.style.display=='none') ? ((document.all && !window.opera) ? 'block' : 'table-row') : 'none';
row.style.display = disp; if (link)
} {
if ((ns = rcmail_next_sibling(link)))
link.parentNode.removeChild(ns);
else if ((ps = rcmail_prev_sibling(link)))
link.parentNode.removeChild(ps);
return false; link.parentNode.removeChild(link);
} }
return false;
}
function rcmail_next_sibling(elm)
{
var ns = elm.nextSibling;
while (ns && ns.nodeType == 3)
ns = ns.nextSibling;
return ns;
}
function rcmail_prev_sibling(elm)
{
var ps = elm.previousSibling;
while (ps && ps.nodeType == 3)
ps = ps.previousSibling;
return ps;
}
//--> //-->
</script> </script>
@ -31,20 +54,21 @@ function rcmail_toggle_display(id)
<form name="form" action="./" method="post"> <form name="form" action="./" method="post">
<div id="messagetoolbar"> <div id="messagetoolbar">
<roundcube:button command="list" image="/images/buttons/back_act.png" imageSel="/images/buttons/back_sel.png" imageAct="/images/buttons/back_act.png" width="32" height="32" title="backtolist" /> <table border="0" cellspacing="0" cellpadding="0"><tr>
<roundcube:button command="send" imageSel="/images/buttons/send_sel.png" imageAct="/images/buttons/send_act.png" imagePas="/images/buttons/send_pas.png" width="32" height="32" title="sendmessage" /> <td>
<roundcube:button command="spellcheck" imageSel="/images/buttons/spellcheck_sel.png" imageAct="/images/buttons/spellcheck_act.png" imagePas="/images/buttons/spellcheck_pas.png" width="32" height="32" title="checkspelling" /> <roundcube:button command="list" image="/images/buttons/back_act.png" imageSel="/images/buttons/back_sel.png" imageAct="/images/buttons/back_act.png" width="32" height="32" title="backtolist" />
<roundcube:button command="add-attachment" imageSel="/images/buttons/attach_sel.png" imageAct="/images/buttons/attach_act.png" imagePas="/images/buttons/attach_pas.png" width="32" height="32" title="addattachment" /> <roundcube:button command="send" imageSel="/images/buttons/send_sel.png" imageAct="/images/buttons/send_act.png" imagePas="/images/buttons/send_pas.png" width="32" height="32" title="sendmessage" />
<roundcube:button command="savedraft" imageSel="/images/buttons/drafts_sel.png" imageAct="/images/buttons/drafts_act.png" imagePas="/images/buttons/drafts_pas.png" width="32" height="32" title="savemessage" /> <roundcube:button command="spellcheck" imageSel="/images/buttons/spellcheck_sel.png" imageAct="/images/buttons/spellcheck_act.png" imagePas="/images/buttons/spellcheck_pas.png" width="32" height="32" title="checkspelling" />
<roundcube:button command="add-attachment" imageSel="/images/buttons/attach_sel.png" imageAct="/images/buttons/attach_act.png" imagePas="/images/buttons/attach_pas.png" width="32" height="32" title="addattachment" />
<div id="priority-selector"> <roundcube:button command="savedraft" imageSel="/images/buttons/drafts_sel.png" imageAct="/images/buttons/drafts_act.png" imagePas="/images/buttons/drafts_pas.png" width="32" height="32" title="savemessage" />
<label for="rcmcomposepriority"><roundcube:label name="priority" />:</label>&nbsp;<roundcube:object name="prioritySelector" form="form" id="rcmcomposepriority" /> </td>
</div> <td id="priority-selector">
<label for="rcmcomposepriority"><roundcube:label name="priority" />:</label>&nbsp;<roundcube:object name="prioritySelector" form="form" id="rcmcomposepriority" />
<div id="receipt-selector"> </td>
<roundcube:object name="receiptCheckBox" form="form" id="rcmcomposereceipt" />&nbsp;<label for="rcmcomposereceipt"><roundcube:label name="returnreceipt" /></label> <td id="receipt-selector">
</div> <roundcube:object name="receiptCheckBox" form="form" id="rcmcomposereceipt" />&nbsp;<label for="rcmcomposereceipt"><roundcube:label name="returnreceipt" /></label>
</td>
</tr></table>
</div> </div>
<div id="compose-container"> <div id="compose-container">
@ -63,8 +87,6 @@ function rcmail_toggle_display(id)
<td class="title top"><label for="rcmcomposeto"><roundcube:label name="to" /></label></td> <td class="title top"><label for="rcmcomposeto"><roundcube:label name="to" /></label></td>
<td><roundcube:object name="composeHeaders" part="to" form="form" id="rcmcomposeto" cols="80" rows="2" tabindex="2" /></td> <td><roundcube:object name="composeHeaders" part="to" form="form" id="rcmcomposeto" cols="80" rows="2" tabindex="2" /></td>
<td class="add-button"><a href="#" onclick="return rcmail_toggle_display('compose-cc')">[Cc]</a><br />
<a href="#" onclick="return rcmail_toggle_display('compose-bcc')">[Bcc]</a><br /></td>
</tr><tr id="compose-cc"> </tr><tr id="compose-cc">
@ -81,6 +103,17 @@ function rcmail_toggle_display(id)
<td class="title top"><label for="rcmcomposereplyto"><roundcube:label name="replyto" /></label></td> <td class="title top"><label for="rcmcomposereplyto"><roundcube:label name="replyto" /></label></td>
<td><roundcube:object name="composeHeaders" part="replyto" form="form" id="rcmcomposereplyto" size="80" tabindex="5" /></td> <td><roundcube:object name="composeHeaders" part="replyto" form="form" id="rcmcomposereplyto" size="80" tabindex="5" /></td>
</tr><tr>
<td></td>
<td class="formlinks">
<a href="#cc" onclick="return rcmail_show_header_form('compose-cc', this);" id="addcclink"><roundcube:label name="addcc" /></a>
<span class="separator">|</span>
<a href="#bcc" onclick="return rcmail_show_header_form('compose-bcc', this);" id="addbcclink"><roundcube:label name="addbcc" /></a>
<span class="separator">|</span>
<a href="#reply-to" onclick="return rcmail_show_header_form('compose-replyto', this);" id="addreplytolink"><roundcube:label name="addreplyto" /></a>
</td>
</tr><tr> </tr><tr>
<td class="title"><label for="compose-subject"><roundcube:label name="subject" /></label></td> <td class="title"><label for="compose-subject"><roundcube:label name="subject" /></label></td>
@ -133,10 +166,10 @@ function rcmail_toggle_display(id)
var cc_field = document.form._cc; var cc_field = document.form._cc;
if (cc_field && cc_field.value!='') if (cc_field && cc_field.value!='')
rcmail_toggle_display('compose-cc'); rcmail_show_header_form('compose-cc', document.getElementById('addcclink'));
var bcc_field = document.form._bcc; var bcc_field = document.form._bcc;
if (bcc_field && bcc_field.value!='') if (bcc_field && bcc_field.value!='')
rcmail_toggle_display('compose-bcc'); rcmail_show_header_form('compose-bcc', document.getElementById('addbcclink'));
//--> //-->
</script> </script>

Loading…
Cancel
Save