Monotone-Parent: 39bee5d17f65aa91b7a4753496f25cd25094497f
Monotone-Revision: 44d8a5e3ba820c4f2a68d0efa49fee1570861b5f Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-09-29T00:22:11 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
7a6175b0ab
commit
c703761b82
|
@ -1,6 +1,6 @@
|
||||||
<?xml version='1.0' standalone='yes'?>
|
<?xml version='1.0' standalone='yes'?>
|
||||||
<!DOCTYPE table>
|
<!DOCTYPE table>
|
||||||
<table multiselect="yes" id="messageList"
|
<table id="messageList"
|
||||||
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns="http://www.w3.org/1999/xhtml"
|
||||||
xmlns:var="http://www.skyrix.com/od/binding"
|
xmlns:var="http://www.skyrix.com/od/binding"
|
||||||
xmlns:const="http://www.skyrix.com/od/constant"
|
xmlns:const="http://www.skyrix.com/od/constant"
|
||||||
|
|
|
@ -488,7 +488,7 @@ TABLE#messageList TH
|
||||||
|
|
||||||
TD#messageFlagHeader,
|
TD#messageFlagHeader,
|
||||||
TABLE#messageList TD.messageFlagColumn
|
TABLE#messageList TD.messageFlagColumn
|
||||||
{ width: 1em;
|
{ width: 22px;
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
|
||||||
TD#subjectHeader,
|
TD#subjectHeader,
|
||||||
|
|
|
@ -637,7 +637,7 @@ function storeCachedMessage(cachedMessage) {
|
||||||
cachedMessages[oldest] = cachedMessage;
|
cachedMessages[oldest] = cachedMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
function onMessageSelectionChange() {
|
function onMessageSelectionChange() { log("onMessageSelectionChange");
|
||||||
var rows = this.getSelectedRowsId();
|
var rows = this.getSelectedRowsId();
|
||||||
|
|
||||||
if (rows.length == 1) {
|
if (rows.length == 1) {
|
||||||
|
@ -965,10 +965,10 @@ var messageListData = function(type) {
|
||||||
|
|
||||||
function configureMessageListEvents(table) {
|
function configureMessageListEvents(table) {
|
||||||
if (table) {
|
if (table) {
|
||||||
|
table.multiselect = true;
|
||||||
// Each body row can load a message
|
// Each body row can load a message
|
||||||
Event.observe(table, "mousedown",
|
Event.observe(table, "mousedown",
|
||||||
onMessageSelectionChange.bindAsEventListener(table));
|
onMessageSelectionChange.bindAsEventListener(table));
|
||||||
|
|
||||||
// Sortable columns
|
// Sortable columns
|
||||||
configureSortableTableHeaders(table);
|
configureSortableTableHeaders(table);
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,8 @@ input.currentAttachment
|
||||||
right: 1em; }
|
right: 1em; }
|
||||||
|
|
||||||
input.attachment
|
input.attachment
|
||||||
{ display: none; }
|
{ position: absolute;
|
||||||
|
left: -1000px; }
|
||||||
|
|
||||||
div#compose_attachments_list
|
div#compose_attachments_list
|
||||||
{ background-color: #ffffff;
|
{ background-color: #ffffff;
|
||||||
|
|
|
@ -9,7 +9,6 @@ function onContactAdd() {
|
||||||
urlstr += '/';
|
urlstr += '/';
|
||||||
urlstr += ("../../" + UserLogin + "/Contacts/"
|
urlstr += ("../../" + UserLogin + "/Contacts/"
|
||||||
+ contactSelectorAction + selectorURL);
|
+ contactSelectorAction + selectorURL);
|
||||||
// log (urlstr);
|
|
||||||
var w = window.open(urlstr, "Addressbook",
|
var w = window.open(urlstr, "Addressbook",
|
||||||
"width=640,height=400,resizable=1,scrollbars=0");
|
"width=640,height=400,resizable=1,scrollbars=0");
|
||||||
w.selector = selector;
|
w.selector = selector;
|
||||||
|
@ -159,6 +158,13 @@ function clickedEditorAttach(sender) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var inputs = area.getElementsByTagName("input");
|
var inputs = area.getElementsByTagName("input");
|
||||||
|
|
||||||
|
// Verify if there's already a visible file input field
|
||||||
|
for (var i = 0; i < inputs.length; i++)
|
||||||
|
if ($(inputs[i]).hasClassName("currentAttachment"))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Add new file input field
|
||||||
var attachmentName = "attachment" + inputs.length;
|
var attachmentName = "attachment" + inputs.length;
|
||||||
var newAttachment = createElement("input", attachmentName,
|
var newAttachment = createElement("input", attachmentName,
|
||||||
"currentAttachment", null,
|
"currentAttachment", null,
|
||||||
|
@ -172,16 +178,7 @@ function clickedEditorAttach(sender) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAddAttachment() {
|
function onAddAttachment() {
|
||||||
var area = $("attachmentsArea");
|
return clickedEditorAttach(null);
|
||||||
var inputs = area.getElementsByTagName("input");
|
|
||||||
var attachmentName = "attachment" + inputs.length;
|
|
||||||
var newAttachment = createElement("input", attachmentName,
|
|
||||||
"currentAttachment", null,
|
|
||||||
{ type: "file",
|
|
||||||
name: attachmentName },
|
|
||||||
area);
|
|
||||||
Event.observe(newAttachment, "change",
|
|
||||||
onAttachmentChange.bindAsEventListener(newAttachment));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onAttachmentChange(event) {
|
function onAttachmentChange(event) {
|
||||||
|
@ -336,11 +333,12 @@ function onMailEditorClose(event) {
|
||||||
var parts = url.split("/");
|
var parts = url.split("/");
|
||||||
parts[parts.length-1] = "delete";
|
parts[parts.length-1] = "delete";
|
||||||
url = parts.join("/");
|
url = parts.join("/");
|
||||||
|
|
||||||
http = createHTTPClient();
|
http = createHTTPClient();
|
||||||
http.open("POST", url, false /* not async */);
|
http.open("POST", url, false /* not async */);
|
||||||
http.send("");
|
http.send("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Event.stopObserving(window, "beforeunload", onMailEditorClose);
|
||||||
}
|
}
|
||||||
|
|
||||||
addEvent(window, 'load', initMailEditor);
|
addEvent(window, 'load', initMailEditor);
|
||||||
|
|
Loading…
Reference in a new issue