mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-26 11:46:23 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user