setSentMailLabel: function(s, l, sel)
{
var label = $('sent_mail_folder_label');
- if (label) {
- if (!l) {
- l = DIMP.conf_compose.flist.find(function(f) {
- return f.v == s;
- });
- l = l.f || l.v;
- }
- $('save_sent_mail_folder').setValue(s);
- $('sent_mail_folder_label').writeAttribute('title', l.escapeHTML()).setText('"' + l.truncate(15) + '"');
+
+ if (!label) {
+ return;
}
+
+ if (!l) {
+ l = DIMP.conf_compose.flist.find(function(f) {
+ return f.v == s;
+ });
+ l = l.f || l.v;
+ }
+
+ $('save_sent_mail_folder').setValue(s);
+ $('sent_mail_folder_label').writeAttribute('title', l.escapeHTML()).setText('"' + l.truncate(15) + '"').up().show();
+
if (sel) {
this.knl.setSelected(s);
}
if (de.scrollHeight - de.clientHeight) {
msg.writeAttribute({ rows: rows - 1 });
}
-
- $('composeloading').hide();
},
uploadAttachment: function()
this.resizecc = new ResizeTextArea('cc', boundResize);
this.resizebcc = new ResizeTextArea('bcc', boundResize);
- // Safari requires a submit target iframe to be at least 1x1 size or
- // else it will open content in a new window. See:
- // http://blog.caboo.se/articles/2007/4/2/ajax-file-upload
- if (Prototype.Browser.WebKit) {
- $('submit_frame').writeAttribute({ position: 'absolute', width: '1px', height: '1px' }).setStyle({ left: '-999px' }).show();
- }
-
/* Add addressbook link formatting. */
if (DIMP.conf_compose.URI_ABOOK) {
$('sendto', 'sendcc', 'sendbcc').each(function(a) {
this.knl.setSelected(this.get_identity($F('identity'))[3]);
$('sent_mail_folder_label').insert({ after: new Element('SPAN', { className: 'popdownImg', id: 'compose_flist_popdown' }).observe('click', function(e) { this.knl.show(); e.stop(); }.bindAsEventListener(this)) });
}
+
+ $('dimpLoading').hide();
+ $('pageContainer').show();
+
+ // Safari requires a submit target iframe to be at least 1x1 size or
+ // else it will open content in a new window. See:
+ // http://blog.caboo.se/articles/2007/4/2/ajax-file-upload
+ if (Prototype.Browser.WebKit) {
+ $('submit_frame').writeAttribute({ position: 'absolute', width: '1px', height: '1px' }).setStyle({ left: '-999px' }).show();
+ }
+
}
},
}
?>
-<div id="composeloading"></div>
<form id="compose" name="compose" enctype="multipart/form-data" action="compose-dimp.php" method="post" target="submit_frame">
<?php echo Horde_Util::formInput() ?>
<input type="hidden" id="action" name="action" />
<label><input name="request_read_receipt" type="checkbox" class="checkbox"<?php if ($d_read != 'ask') echo ' checked="checked"' ?> /> <?php echo _("Read Receipt") ?></label>
<?php endif; ?>
<?php if ($GLOBALS['conf']['user']['allow_folders'] && !$GLOBALS['prefs']->isLocked('save_sent_mail')): ?>
- <label>
+ <label style="display:none">
<input id="save_sent_mail" name="save_sent_mail" type="checkbox" class="checkbox"<?php if ($identity->saveSentmail()) echo ' checked="checked"' ?> /> <?php echo _("Save in") ?>
<span id="sent_mail_folder_label"></span>
</label>