See Changelog

Monotone-Parent: 7d14c1d53b75463bc607f5c2a995cb97d1b26bbe
Monotone-Revision: 95f7fe705cdf289c3dbf8348db3604bcece67b95

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-09-22T20:10:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-09-22 20:10:25 +00:00
parent 7c56810865
commit 56183e8a7b
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2010-09-22 Francis Lachapelle <flachapelle@inverse.ca>
* UI/WebServerResources/ContactsUI.js
(onToolbarDeleteSelectedContacts): delete the selected addressbook
if no contact is selected. Also checked if rows is defined
otherwise it would cause an error with Safari.
2010-09-20 Ludovic Marcotte <lmarcotte@inverse.ca>
* SoObjects/SOGo/SOGoGCSFolder.m

View File

@@ -432,11 +432,11 @@ function onToolbarDeleteSelectedContacts(event) {
var contactsList = $('contactsList');
var rows = contactsList.getSelectedRowsId();
if (rows.length)
if (rows && rows.length)
showConfirmDialog(_("Confirmation"),
_("Are you sure you want to delete the selected contacts?"),
onToolbarDeleteSelectedContactsConfirm);
else
else if (!onAddressBookRemove(event))
showAlertDialog(_("Please select a contact."));
return false;
@@ -784,6 +784,8 @@ function onAddressBookRemove(event) {
}
preventDefault(event);
return (nodes.length > 0);
}
function deletePersonalAddressBook(folderId) {