Monotone-Parent: 2519a63de2bcf36a1f0aeeece831f277cf94934c

Monotone-Revision: 42e111d1ab25686092e392def5b8aa0c22f4d88b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-06-04T20:01:53
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau committed 2007-06-04 20:01:53 +00:00
1 parent b23dfcf23a
commit df229b29fd
2 files changed
+12 -8

No files matched your search

@@ -53,10 +53,8 @@
><td colspan="6" class="tbtv_navcell" ><td colspan="6" class="tbtv_navcell"
><var:if condition="hasPrevious"> ><var:if condition="hasPrevious">
<a href="#" <a href="#"
onclick="openMailboxAtIndex(this);"
idx="1"><var:string label:value="first"/></a> | idx="1"><var:string label:value="first"/></a> |
<a href="#" <a href="#"
onclick="openMailboxAtIndex(this);"
var:idx="prevFirstMessageNumber" var:idx="prevFirstMessageNumber"
><var:string label:value="previous"/></a> | ><var:string label:value="previous"/></a> |
</var:if> </var:if>
@@ -67,7 +65,6 @@
<var:string value="sortedUIDs.count" /> <var:string value="sortedUIDs.count" />
<var:if condition="hasNext" <var:if condition="hasNext"
>| <a href="#" >| <a href="#"
onclick="openMailboxAtIndex(this);"
var:idx="nextFirstMessageNumber" var:idx="nextFirstMessageNumber"
><var:string label:value="next" /></a> ><var:string label:value="next" /></a>
</var:if </var:if
+12 -5
View File
@@ -463,8 +463,8 @@ function openMailbox(mailbox, reload) {
// triggerAjaxRequest(mailbox, 'toolbar', toolbarCallback); // triggerAjaxRequest(mailbox, 'toolbar', toolbarCallback);
} }
function openMailboxAtIndex(element) { function openMailboxAtIndex(event) {
var idx = element.getAttribute("idx"); var idx = this.getAttribute("idx");
var url = ApplicationBaseURL + currentMailbox + "/view?noframe=1&idx=" + idx; var url = ApplicationBaseURL + currentMailbox + "/view?noframe=1&idx=" + idx;
if (document.messageListAjaxRequest) { if (document.messageListAjaxRequest) {
@@ -474,7 +474,7 @@ function openMailboxAtIndex(element) {
document.messageListAjaxRequest document.messageListAjaxRequest
= triggerAjaxRequest(url, messageListCallback); = triggerAjaxRequest(url, messageListCallback);
return false; event.preventDefault();
} }
function messageListCallback(http) { function messageListCallback(http) {
@@ -939,9 +939,16 @@ function configureMessageListEvents() {
var rows = messageList.tBodies[0].rows; var rows = messageList.tBodies[0].rows;
var start = 0; var start = 0;
if (rows.length > 1) { if (rows.length > 1) {
while (rows[start].cells[0].hasClassName("tbtv_headercell") if (rows[start].cells[0].hasClassName("tbtv_headercell"))
|| rows[start].cells[0].hasClassName("tbtv_navcell"))
start++; start++;
if (rows[start].cells[0].hasClassName("tbtv_navcell")) {
log("start:" + start);
var anchors = $(rows[start].cells[0]).childNodesWithTag("a");
log("nr anchors: " + anchors.length);
for (var i = 0; i < anchors.length; i++)
Event.observe(anchors[i], "click", openMailboxAtIndex);
start++;
}
for (var i = start; i < rows.length; i++) { for (var i = start; i < rows.length; i++) {
Event.observe(rows[i], "mousedown", onRowClick); Event.observe(rows[i], "mousedown", onRowClick);
Event.observe(rows[i], "contextmenu", onMessageContextMenu); Event.observe(rows[i], "contextmenu", onMessageContextMenu);