}
$('save_sent_mail_folder').setValue(s);
- $('sent_mail_folder_label').writeAttribute('title', l.escapeHTML()).setText('"' + l.truncate(15) + '"').up(1).show();
+ $('sent_mail_folder_label').writeAttribute('title', l.escapeHTML()).setText(l.truncate(15)).up(1).show();
if (sel) {
this.knl.setSelected(s);
} else {
elt = new Element('INPUT', { type: 'file', name: 'file_1' });
}
+ $('upload_wait').next().show();
$('upload_wait').replace(elt.writeAttribute('id', 'upload'));
this.resizeMsgArea();
break;
this.rte.setData($F('composeMessage'));
$('composeMessageParent').childElements().invoke('show');
$('composeMessage').hide();
+ this.resizeMsgArea();
} catch (e) {
config = Object.clone(IMP.ckeditor_config);
if (!config.on) {
this.resizecc.resizeNeeded();
}
if (DIMP.conf_compose.cc) {
- this.toggleCC('cc');
+ this.toggleCC('cc', true);
}
this.setSentMailLabel(identity.id[3], identity.id[5], true);
if (header.bcc) {
$('bcc').setValue(bcc_add + identity.id[6]);
}
if (DIMP.conf_compose.bcc) {
- this.toggleCC('bcc');
+ this.toggleCC('bcc', true);
}
$('subject').setValue(header.subject);
e.each(function(n) {
n = $(n);
ids.push(n.down('SPAN.remove').readAttribute('atc_id'));
- n.remove();
+ n.fade({
+ afterFinish: function() { n.remove(); },
+ duration: 0.4
+ });
});
if (!$('attach_list').childElements().size()) {
$('attach_list').hide();
{
var u = $('upload');
this.uniqueSubmit('add_attachment');
- u.replace(new Element('DIV', { id: 'upload_wait' }).insert(DIMP.text_compose.uploading + ' ' + $F(u)));
+ u.next().hide();
+ u.replace(new Element('SPAN', { id: 'upload_wait' }).insert(DIMP.text_compose.uploading + ' (' + $F(u) + ')'));
},
attachmentComplete: function()
DimpCore.doActionComplete({ responseJSON: doc.body.innerHTML.evalJSON(true) }, this.uniqueSubmitCallback.bind(this));
},
- toggleCC: function(type)
+ toggleCC: function(type, immediate)
{
+ var t = $('toggle' + type);
+
$('send' + type).show();
- $('toggle' + type).hide();
+ if (immediate) {
+ t.hide();
+ } else {
+ t.fade({ duration: 0.4 });
+ }
},
/* Sets the cursor to the given position. */
onChoose: this.setSentMailLabel.bind(this)
});
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(); this.knl.ignoreClick(e); e.stop(); }.bindAsEventListener(this)) });
+ $('sent_mail_folder_label').insert({ after: new Element('SPAN', { className: 'popdownImg' }).observe('click', function(e) { this.knl.show(); this.knl.ignoreClick(e); e.stop(); }.bindAsEventListener(this)) });
}
$('dimpLoading').hide();
}
/* Fixes broken inline-block. */
-div.msgStatus div, #msgHeadersContent .subject span, span.iconImg, span.contextImg, span.spellcheckPopdownImg, #quicksearch span {
+div.msgStatus div, #msgHeadersContent .subject span, span.iconImg, span.contextImg, span.spellcheckPopdownImg, span.popdownImg, #qsearch_icon, #qsearch_close, #upload_wait {
zoom: 1;
*display: inline;
}
}
/* Fixes broken inline-block. */
-div.msgStatus div, #msgHeadersContent .subject span, span.iconImg, span.contextImg, span.spellcheckPopdownImg, #quicksearch span {
+div.msgStatus div, #msgHeadersContent .subject span, span.iconImg, span.contextImg, span.spellcheckPopdownImg, span.popdownImg, #qsearch_icon, #qsearch_close, #upload_wait {
zoom: 1;
*display: inline;
}
display: block;
}
-#to, #cc, #bcc, #subject {
- width: 100%;
-}
-
#composeMessageParent {
background: #fff url("graphics/backhead_shadow.png") top repeat-x;
border-left: 1px silver solid;
z-index: 101;
}
-#compose_flist_popdown {
- margin-top: -1px;
-}
-
-/* attachment file list */
+/* Attachment file list */
#attach_list {
padding-left: 15px;
}
font-weight: bold;
padding: 1px;
}
-#attach_list span.remove:hover {
- color: red;
+#attach_list span.attachName, #attach_list span.remove:hover {
+ cursor: pointer;
text-decoration: underline;
}
#attach_list span.attachName {
color: blue;
- cursor: pointer;
- text-decoration: underline;
}
-#attach_list span.attachName:hover {
+#attach_list span.attachName:hover, #attach_list span.remove:hover {
color: red;
}
+#upload_wait {
+ display: -moz-inline-stack;
+ display: inline-block;
+ font-weight: bold;
+ padding-top: 2px;
+}
+
span.attachmentImg {
background-image: url("graphics/attachment.png");
}