mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-19 07:04:53 +00:00
See ChangeLog
Monotone-Parent: 3c15622e01ba189cb753c80fb8cf4c1a57e85c29 Monotone-Revision: 3273edcbe74bef5af678b4bac440df23fe52dafd Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-06-26T17:48:28 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -97,24 +97,26 @@ function contactsListCallback(http) {
|
||||
var tmp = document.createElement('div');
|
||||
$(tmp).update(html);
|
||||
table.replaceChild($(tmp).select("table tbody")[0], tbody);
|
||||
|
||||
var rows = table.tBodies[0].rows;
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
var row = $(rows[i]);
|
||||
row.observe("mousedown", onRowClick);
|
||||
row.observe("dblclick", onContactRowDblClick);
|
||||
row.observe("selectstart", listRowMouseDownHandler);
|
||||
row.observe("contextmenu", onContactContextMenu);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Add table (doesn't happen .. yet)
|
||||
// Add table
|
||||
div.update(http.responseText);
|
||||
table = $("contactsList");
|
||||
table.multiselect = true;
|
||||
table.observe("mousedown", onContactSelectionChange);
|
||||
configureSortableTableHeaders(table);
|
||||
TableKit.Resizable.init(table, {'trueResize' : true, 'keepWidth' : true});
|
||||
}
|
||||
|
||||
var rows = table.tBodies[0].rows;
|
||||
for (var i = 0; i < rows.length; i++) {
|
||||
var row = $(rows[i]);
|
||||
row.observe("mousedown", onRowClick);
|
||||
row.observe("dblclick", onContactRowDblClick);
|
||||
row.observe("selectstart", listRowMouseDownHandler);
|
||||
row.observe("contextmenu", onContactContextMenu);
|
||||
}
|
||||
|
||||
if (sorting["attribute"] && sorting["attribute"].length > 0) {
|
||||
var sortHeader;
|
||||
if (sorting["attribute"] == "c_cn")
|
||||
|
||||
Reference in New Issue
Block a user