mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 14:43:31 +00:00
Monotone-Parent: 9db8092ac3ca36528f7a06834c2b7ba010213ced
Monotone-Revision: c6317744df015d8003995ebbc0c3b8b1b3f1f549 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-01T18:01:00 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -563,14 +563,11 @@ TABLE#messageList
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
TABLE#messageList THEAD
|
||||
TABLE#messageList TD.tbtv_headercell,
|
||||
TABLE#messageList TD.tbtv_navcell
|
||||
{
|
||||
width: 100%;
|
||||
background-color: #DCDAD5;
|
||||
}
|
||||
|
||||
TABLE#messageList THEAD TD
|
||||
{
|
||||
padding-left: .3em;
|
||||
padding-right: .3em;
|
||||
border-top: 1px solid #fff;
|
||||
|
||||
@@ -350,13 +350,16 @@ function mailListMarkMessage(sender, action, msguid, markread)
|
||||
|
||||
var oldMaillistHighlight = null; // to remember deleted/selected style
|
||||
|
||||
function ml_highlight(sender) {
|
||||
function ml_highlight(sender)
|
||||
{
|
||||
oldMaillistHighlight = sender.className;
|
||||
if (oldMaillistHighlight == "tableview_highlight")
|
||||
oldMaillistHighlight = null;
|
||||
sender.className = "tableview_highlight";
|
||||
}
|
||||
function ml_lowlight(sender) {
|
||||
|
||||
function ml_lowlight(sender)
|
||||
{
|
||||
if (oldMaillistHighlight) {
|
||||
sender.className = oldMaillistHighlight;
|
||||
oldMaillistHighlight = null;
|
||||
@@ -506,7 +509,7 @@ function openMailbox(mailbox)
|
||||
{
|
||||
if (mailbox != currentMailbox) {
|
||||
currentMailbox = mailbox;
|
||||
var url = ApplicationBaseURL + mailbox + "/view?noframe=1";
|
||||
var url = ApplicationBaseURL + mailbox + "/view?noframe=1&desc=1";
|
||||
var mailboxContent = document.getElementById("mailboxContent");
|
||||
var mailboxDragHandle = document.getElementById("mailboxDragHandle");
|
||||
var messageContent = document.getElementById("messageContent");
|
||||
@@ -563,8 +566,12 @@ function openMailboxAtIndex(element) {
|
||||
function messageListCallback(http)
|
||||
{
|
||||
var div = document.getElementById('mailboxContent');
|
||||
|
||||
log ("callback...");
|
||||
|
||||
if (http.readyState == 4
|
||||
&& http.status == 200) {
|
||||
log ("processing callback...");
|
||||
document.messageListAjaxRequest = null;
|
||||
div.innerHTML = http.responseText;
|
||||
var selected = http.callbackData;
|
||||
@@ -1044,6 +1051,27 @@ function initMailboxAppearance()
|
||||
+ 'px;');
|
||||
}
|
||||
|
||||
function onHeaderClick(node)
|
||||
{
|
||||
var href = node.getAttribute("href");
|
||||
|
||||
if (document.messageListAjaxRequest) {
|
||||
log ("aborting previous request...");
|
||||
document.messageListAjaxRequest.aborted = true;
|
||||
document.messageListAjaxRequest.abort();
|
||||
}
|
||||
log ("onHeaderClick request...");
|
||||
url = ApplicationBaseURL + currentMailbox + "/" + href;
|
||||
if (!href.match(/noframe=/))
|
||||
url += "&noframe=1";
|
||||
log ("url: " + url);
|
||||
document.messageListAjaxRequest
|
||||
= triggerAjaxRequest(url, messageListCallback);
|
||||
|
||||
log ("end request.. (awaiting result)");
|
||||
return false;
|
||||
}
|
||||
|
||||
function registerDraggableMessageNodes()
|
||||
{
|
||||
log ("can we drag...");
|
||||
|
||||
Reference in New Issue
Block a user