From f25989a2913182af216156d573a534558fa2b78e Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 8 Jul 2008 12:44:11 +0000 Subject: [PATCH] Monotone-Parent: 716528a4c99649c701a54366e47e2396b887aa1a Monotone-Revision: faa54c78af829885e4c94078b27e72ff3d5a5ce9 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-07-08T12:44:11 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/ContactsUI.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index 6f5147185..95f539fb4 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -42,12 +42,15 @@ function openContactsFolder(contactsFolder, reload, idx) { + "&asc=" + sorting["ascending"]); var selection; - if (contactsFolder == currentAddressBook) { + if (idx) { + selection = [idx]; + } + else if (contactsFolder == currentAddressBook) { var contactsList = $("contactsList"); if (contactsList) selection = contactsList.getSelectedRowsId(); - // else - // window.alert("no contactsList"); +// else +// window.alert("no contactsList"); } else selection = null; @@ -505,7 +508,7 @@ function onConfirmContactSelection(event) { } function refreshContacts(contactId) { - refreshCurrentFolder(); + openContactsFolder(currentAddressBook, true, contactId); cachedContacts[currentAddressBook + "/" + contactId] = null; loadContact(contactId);