Minor improvement in Mail editor

Monotone-Parent: 296da5015be2fa9599fbedd1f763c37cffa231c0
Monotone-Revision: 64703eddf193d3b0fa0bcca0b336e5a68d8a1256

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-08-04T18:44:06
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle committed 2009-08-04 18:44:06 +00:00
1 parent 8d4a65a680
commit e2dd875a20
2 files changed
+3 -43

No files matched your search

+2 -4
View File
@@ -92,10 +92,8 @@ div#attachmentsArea
{ display: none; { display: none;
float: right; float: right;
width: 120px; width: 120px;
height: 100%; padding: 2px 5px 0;
margin: auto; margin: auto;
padding-right: 5px;
padding-left: 5px;
border-left: 1px solid #888; } border-left: 1px solid #888; }
hr hr
@@ -133,7 +131,7 @@ UL#attachments
{ cursor: default; { cursor: default;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
height: 9em; height: 100%;
border-bottom: 1px solid #fff; border-bottom: 1px solid #fff;
border-right: 1px solid #fff; border-right: 1px solid #fff;
border-top: 2px solid #222; border-top: 2px solid #222;
+1 -39
View File
@@ -103,40 +103,7 @@ function insertContact(inputNode, contactName, contactEmail) {
inputNode.value = value; inputNode.value = value;
} }
function toggleAttachments() {
var div = $("attachmentsArea");
var style = "" + div.getStyle("display");
if (style.length)
div.setStyle({ display: "" });
else
div.setStyle({ display: "block" });
return false;
}
function updateInlineAttachmentList(sender, attachments) {
var count = 0;
var div = $("attachmentsArea");
if (attachments)
count = attachments.length;
if (count) {
var text = "";
for (var i = 0; i < count; i++) {
text = text + attachments[i];
text = text + '<br />';
}
var e = $('compose_attachments_list');
e.innerHTML = text;
var style = "" + div.getStyle("display");
if (!style.length)
div.setStyle({display: "block"});
}
else
div.setStyle({display: ""});
}
/* mail editor */ /* mail editor */
function validateEditorInput(sender) { function validateEditorInput(sender) {
@@ -218,10 +185,6 @@ function clickedEditorAttach(sender) {
return false; return false;
} }
function onAddAttachment() {
return clickedEditorAttach(null);
}
function onAttachmentChange(event) { function onAttachmentChange(event) {
if (this.value == "") if (this.value == "")
this.parentNode.removeChild(this); this.parentNode.removeChild(this);
@@ -618,7 +581,7 @@ function getMenus() {
return { "attachmentsMenu": new Array(null, onRemoveAttachments, return { "attachmentsMenu": new Array(null, onRemoveAttachments,
onSelectAllAttachments, onSelectAllAttachments,
"-", "-",
onAddAttachment, null) }; clickedEditorAttach, null) };
} }
function onRemoveAttachments() { function onRemoveAttachments() {
@@ -720,7 +683,6 @@ function onWindowResize(event) {
$("attachments").setStyle({ height: (height-9) + 'px' }); $("attachments").setStyle({ height: (height-9) + 'px' });
else else
$("attachments").setStyle({ height: height + 'px' }); $("attachments").setStyle({ height: height + 'px' });
} }
var subjectfield = headerarea.down("div#subjectRow span.headerField"); var subjectfield = headerarea.down("div#subjectRow span.headerField");
var subjectinput = headerarea.down("div#subjectRow input.textField"); var subjectinput = headerarea.down("div#subjectRow input.textField");