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.sogomaint-2.0.2
parent
8d4a65a680
commit
e2dd875a20
|
@ -92,10 +92,8 @@ div#attachmentsArea
|
|||
{ display: none;
|
||||
float: right;
|
||||
width: 120px;
|
||||
height: 100%;
|
||||
padding: 2px 5px 0;
|
||||
margin: auto;
|
||||
padding-right: 5px;
|
||||
padding-left: 5px;
|
||||
border-left: 1px solid #888; }
|
||||
|
||||
hr
|
||||
|
@ -133,7 +131,7 @@ UL#attachments
|
|||
{ cursor: default;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
height: 9em;
|
||||
height: 100%;
|
||||
border-bottom: 1px solid #fff;
|
||||
border-right: 1px solid #fff;
|
||||
border-top: 2px solid #222;
|
||||
|
|
|
@ -103,40 +103,7 @@ function insertContact(inputNode, contactName, contactEmail) {
|
|||
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 */
|
||||
|
||||
function validateEditorInput(sender) {
|
||||
|
@ -218,10 +185,6 @@ function clickedEditorAttach(sender) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function onAddAttachment() {
|
||||
return clickedEditorAttach(null);
|
||||
}
|
||||
|
||||
function onAttachmentChange(event) {
|
||||
if (this.value == "")
|
||||
this.parentNode.removeChild(this);
|
||||
|
@ -618,7 +581,7 @@ function getMenus() {
|
|||
return { "attachmentsMenu": new Array(null, onRemoveAttachments,
|
||||
onSelectAllAttachments,
|
||||
"-",
|
||||
onAddAttachment, null) };
|
||||
clickedEditorAttach, null) };
|
||||
}
|
||||
|
||||
function onRemoveAttachments() {
|
||||
|
@ -720,7 +683,6 @@ function onWindowResize(event) {
|
|||
$("attachments").setStyle({ height: (height-9) + 'px' });
|
||||
else
|
||||
$("attachments").setStyle({ height: height + 'px' });
|
||||
|
||||
}
|
||||
var subjectfield = headerarea.down("div#subjectRow span.headerField");
|
||||
var subjectinput = headerarea.down("div#subjectRow input.textField");
|
||||
|
|
Loading…
Reference in New Issue