mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-28 06:35:26 +00:00
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:
@@ -60,15 +60,6 @@
|
||||
return currentContact;
|
||||
}
|
||||
|
||||
- (NSString *) currentCName
|
||||
{
|
||||
NSString *cName;
|
||||
|
||||
cName = [currentContact objectForKey: @"c_name"];
|
||||
|
||||
return [cName stringByEscapingURL];
|
||||
}
|
||||
|
||||
- (id <WOActionResults>) mailerContactsAction
|
||||
{
|
||||
selectorComponentClass = @"UIxContactsMailerSelection";
|
||||
|
||||
@@ -29,14 +29,13 @@
|
||||
<tbody>
|
||||
<var:foreach list="contactInfos" item="currentContact">
|
||||
<tr class="tableview"
|
||||
var:id="currentCName"
|
||||
var:contactname="currentContact.displayName"
|
||||
var:contactid="currentContact.c_uid">
|
||||
<td class="displayName"><var:string value="currentContact.displayName" const:escapeHTML="YES" /></td>
|
||||
<td><var:string value="currentContact.mail"/></td>
|
||||
<td><var:string value="currentContact.screenName"/></td>
|
||||
<td><var:string value="currentContact.org"/></td>
|
||||
<td><var:string value="currentContact.phone"/></td>
|
||||
var:id="currentContact.c_name"
|
||||
var:contactname="currentContact.c_cn">
|
||||
<td class="displayName"><var:string value="currentContact.c_cn" const:escapeHTML="YES" /></td>
|
||||
<td><var:string value="currentContact.c_mail"/></td>
|
||||
<td><var:string value="currentContact.c_screenname"/></td>
|
||||
<td><var:string value="currentContact.c_o"/></td>
|
||||
<td><var:string value="currentContact.c_telephonenumber"/></td>
|
||||
</tr>
|
||||
</var:foreach>
|
||||
</tbody>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user