Monotone-Parent: 886ef4d59687f71aba6dc9ad33024e9bb2bd2a1a
Monotone-Revision: 393f52805840a2d18b9be5e45115ab4efac032d3 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-11-01T22:00:46 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
cadd905799
commit
0305f5a918
|
@ -540,17 +540,19 @@ function addressBooksCallback(http) {
|
|||
ul.removeChild(children[i]);
|
||||
|
||||
ul.setAttribute("additional-addressbooks", http.callbackData);
|
||||
var list = http.callbackData.split(",");
|
||||
var newCode = "";
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
var username = list[i];
|
||||
newCode += ( "<li external-addressbook=\"" + username + "\""
|
||||
+ " onmousedown=\"return false;\""
|
||||
+ " onclick=\"return onRowClick(event);\""
|
||||
+ " oncontextmenu=\"return onContactFolderContextMenu(event);\">" );
|
||||
newCode += ( username + "</li>" );
|
||||
if (http.callbackData.length > 0) {
|
||||
var list = http.callbackData.split(",");
|
||||
var newCode = "";
|
||||
for (var i = 0; i < list.length; i++) {
|
||||
var username = list[i];
|
||||
newCode += ( "<li external-addressbook=\"" + username + "\""
|
||||
+ " onmousedown=\"return false;\""
|
||||
+ " onclick=\"return onRowClick(event);\""
|
||||
+ " oncontextmenu=\"return onContactFolderContextMenu(event);\">" );
|
||||
newCode += ( username + "</li>" );
|
||||
}
|
||||
ul.innerHTML += newCode;
|
||||
}
|
||||
ul.innerHTML += newCode;
|
||||
}
|
||||
document.addressBooksAjaxRequest = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue