From 2e66b6a8e611551454fdbf5d73e662fc41eb8d93 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 8 Feb 2012 15:41:57 +0000 Subject: [PATCH] See ChangeLog. Monotone-Parent: 68e5a2b8ae68f37745584028ad7764b76dcc5794 Monotone-Revision: ae0ad3228ddb04bfb233821d8ded09a5b5866c93 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2012-02-08T15:41:57 --- ChangeLog | 7 +++++++ UI/WebServerResources/ContactsUI.js | 8 ++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2b0283935..d8698c482 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-02-14 Francis Lachapelle + + * UI/WebServerResources/ContactsUI.js (contactsListCallback): when + restoring selection after the folder refresh, call "selectElement" + on each row. This fixes the contacts selection retrieval when using the + contextual menu. + 2012-02-14 Wolfgang Sourdeau * SoObjects/SOGo/SOGoSQLUserProfile.m (_sqlJsonRepresentation:): diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index b5b8faed6..b810565d9 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -115,7 +115,6 @@ function contactsListCallback(http) { { categories: contact["c_categories"], contactname: contact["c_cn"] }, tbody); - var cell = createElement("td", null, ( "displayName" ), @@ -197,6 +196,7 @@ function contactsListCallback(http) { var rowPosition = row.rowIndex * row.getHeight(); if (div.getHeight() < rowPosition) div.scrollTop = rowPosition; // scroll to selected contact + row.selectElement(); break; } } @@ -310,9 +310,9 @@ function onMenuExportContact (event) { var selectedFolders = $("contactFolders").getSelectedNodes(); var selectedFolderId = $(selectedFolders[0]).readAttribute("id"); if (selectedFolderId != "/shared") { - var contactIds = $(document.menuTarget).collect(function(row) { - return row.getAttribute("id"); - }); + var contactIds = document.menuTarget.collect(function(row) { + return row.readAttribute("id"); + }); var url = ApplicationBaseURL + selectedFolderId + "/export" + "?uid=" + contactIds.join("&uid="); window.location.href = url;