Monotone-Parent: 009835d66e03b894b731fe8bbbadabcc4ca55605

Monotone-Revision: 200aa3ad3746194677c1c162d99fec321f1ecd29

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-28T14:08:30
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau 2007-06-28 14:08:30 +00:00
parent a8e5b93d84
commit 12da73caad
2 changed files with 11 additions and 6 deletions

View file

@ -470,7 +470,8 @@ TABLE#addr_table
} }
TABLE#messageList TABLE#messageList
{ display: block; { cursor: default;
display: block;
position: absolute; position: absolute;
background-color: #fff; background-color: #fff;
color: #000; color: #000;

View file

@ -342,7 +342,8 @@ function moveMessages(rowIds, folder) {
/* send AJAX request (synchronously) */ /* send AJAX request (synchronously) */
var messageId = currentMailbox + "/" + rowIds[i]; var messageId = currentMailbox + "/" + rowIds[i];
url = ApplicationBaseURL + messageId + "/move?jsonly=1&tofolder=" + folder; url = (ApplicationBaseURL + messageId
+ "/move?jsonly=1&tofolder=" + folder);
http = createHTTPClient(); http = createHTTPClient();
http.open("GET", url, false /* not async */); http.open("GET", url, false /* not async */);
http.send(""); http.send("");
@ -499,8 +500,9 @@ function messageListCallback(http) {
div.innerHTML = http.responseText; div.innerHTML = http.responseText;
var selected = http.callbackData; var selected = http.callbackData;
if (selected) { if (selected) {
var row = $('row_' + selected); var row = $("row_" + selected);
row.select(); if (row)
row.select();
} }
configureMessageListEvents(); configureMessageListEvents();
configureSortableTableHeaders(); configureSortableTableHeaders();
@ -851,10 +853,12 @@ function onHeaderClick(event) {
document.messageListAjaxRequest.aborted = true; document.messageListAjaxRequest.aborted = true;
document.messageListAjaxRequest.abort(); document.messageListAjaxRequest.abort();
} }
var link = this.getAttribute('href'); var link = this.getAttribute("href");
url = ApplicationBaseURL + currentMailbox + "/" + link; url = ApplicationBaseURL + currentMailbox + "/" + link;
if (!link.match(/noframe=/)) if (link.indexOf("noframe=") < 0)
url += "&noframe=1"; url += "&noframe=1";
log ("link: " + link);
document.messageListAjaxRequest document.messageListAjaxRequest
= triggerAjaxRequest(url, messageListCallback); = triggerAjaxRequest(url, messageListCallback);