Monotone-Parent: efd9926cc2f7cfa8385ca79896abdf82e8b16d59

Monotone-Revision: c9246310f08403905093c99e74adb38f7c4c3c7e

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2009-02-06T20:09:56
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2009-02-06 20:09:56 +00:00
parent c2635c9eba
commit 2765c2a2ec
5 changed files with 49 additions and 70 deletions

View File

@@ -351,10 +351,10 @@ function moveTo(uri) {
/* contact menu entries */
function onContactRowDblClick(event) {
var contactId = this.getAttribute('contactid');
var cname = this.getAttribute('id');
openContactWindow(URLForFolderID(Contact.currentAddressBook)
+ "/" + contactId + "/edit", contactId);
+ "/" + cname + "/edit", cname);
return false;
}
@@ -364,7 +364,7 @@ function onContactSelectionChange(event) {
if (rows.length == 1) {
var node = $(rows[0]);
loadContact(node.getAttribute('contactid'));
loadContact(node.getAttribute('id'));
}
else if (rows.length > 1) {
$('contactView').update();
@@ -551,7 +551,7 @@ function onConfirmContactSelection(event) {
var contactsList = $("contactsList");
var rows = contactsList.getSelectedRows();
for (i = 0; i < rows.length; i++) {
var cid = rows[i].getAttribute("contactid");
var cid = rows[i].getAttribute("id");
var cname = '' + rows[i].getAttribute("contactname");
var email = '' + rows[i].cells[1].innerHTML;
@@ -562,10 +562,10 @@ function onConfirmContactSelection(event) {
preventDefault(event);
}
function refreshContacts(contactId) {
openContactsFolder(Contact.currentAddressBook, true, contactId);
delete cachedContacts[Contact.currentAddressBook + "/" + contactId];
loadContact(contactId);
function refreshContacts(cname) {
openContactsFolder(Contact.currentAddressBook, true, cname);
delete cachedContacts[Contact.currentAddressBook + "/" + cname];
loadContact(cname);
return false;
}