Monotone-Parent: 1094f166b339479dde765f822ac9c63fd901e53c

Monotone-Revision: 546031563b555a3095688a4ec17eeb5902aea9a1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2008-07-08T13:04:36
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2008-07-08 13:04:36 +00:00
parent d7783869c3
commit a8a1cfbc31

View File

@@ -81,6 +81,7 @@ function contactsListCallback(http) {
if (http.status == 200) {
document.contactsListAjaxRequest = null;
var div = $("contactsListContent");
var table = $("contactsList");
if (table) {
// Update table
@@ -102,7 +103,6 @@ function contactsListCallback(http) {
}
else {
// Add table (doesn't happen .. yet)
var div = $("contactsListContent");
div.update(http.responseText);
table = $("contactsList");
configureSortableTableHeaders(table);
@@ -143,8 +143,12 @@ function contactsListCallback(http) {
if (selected) {
for (var i = 0; i < selected.length; i++) {
var row = $(selected[i]);
if (row)
if (row) {
var rowPosition = row.rowIndex * row.getHeight();
if (div.getHeight() < rowPosition)
div.scrollTop = rowPosition; // scroll to selected contact
row.selectElement();
}
}
}
}