diff --git a/UI/Contacts/Dutch.lproj/Localizable.strings b/UI/Contacts/Dutch.lproj/Localizable.strings index 7a4ded4f4..c7a4d248e 100644 --- a/UI/Contacts/Dutch.lproj/Localizable.strings +++ b/UI/Contacts/Dutch.lproj/Localizable.strings @@ -109,6 +109,8 @@ "Name of the Address Book" = "Naam van het adresboek"; "Are you sure you want to delete the selected address book?" = "Weet u zeker dat u het geselecteerde adresboek wilt verwijderen?"; +"Are you sure you want to delete the selected contacts?" += "Weet u zeker dat u de geselecteerde contactpersonen wilt verwijderen?"; "You cannot delete the selected contact(s)" = "U kunt deze contactpersonen niet verwijderen."; diff --git a/UI/Contacts/English.lproj/Localizable.strings b/UI/Contacts/English.lproj/Localizable.strings index 3e1e1ae18..fd12c5f46 100644 --- a/UI/Contacts/English.lproj/Localizable.strings +++ b/UI/Contacts/English.lproj/Localizable.strings @@ -105,6 +105,8 @@ "Name of the Address Book" = "Name of the Address Book"; "Are you sure you want to delete the selected address book?" = "Are you sure you want to delete the selected address book?"; +"Are you sure you want to delete the selected contacts?" += "Are you sure you want to delete the selected contacts?"; "You don't have the required privileges to perform the operation." = "You don't have the required privileges to perform the operation."; "You cannot delete the card of \"%{0}\"." @@ -141,4 +143,4 @@ "SoAccessDeniedException" = "You cannot write to this address book."; "Forbidden" = "You cannot write to this address book."; "Invalid Contact" = "The selected contact no longer exists."; -"Unknown Destination Folder" = "The chosen destination address book no longer exists."; \ No newline at end of file +"Unknown Destination Folder" = "The chosen destination address book no longer exists."; diff --git a/UI/Contacts/French.lproj/Localizable.strings b/UI/Contacts/French.lproj/Localizable.strings index ef05f8482..5fbb24564 100644 --- a/UI/Contacts/French.lproj/Localizable.strings +++ b/UI/Contacts/French.lproj/Localizable.strings @@ -118,6 +118,8 @@ "Name of the Address Book" = "Nom du carnet d'adresses"; "Are you sure you want to delete the selected address book?" = "Voulez-vous vraiment supprimer le carnet d'adresses sélectionné ?"; +"Are you sure you want to delete the selected contacts?" += "Voulez-vous vraiment supprimer les contacts sélectionnés ?"; "You don't have the required privileges to perform the operation." = "Vous n'avez pas les privilèges requis pour compléter l'opération."; "You cannot delete the card of \"%{0}\"." diff --git a/UI/Contacts/German.lproj/Localizable.strings b/UI/Contacts/German.lproj/Localizable.strings index 5ab3b29ba..5c4bbf070 100644 --- a/UI/Contacts/German.lproj/Localizable.strings +++ b/UI/Contacts/German.lproj/Localizable.strings @@ -109,6 +109,8 @@ "Name of the Address Book" = "Adressbuch-Name"; "Are you sure you want to delete the selected address book?" = "Wollen Sie wirklich das ausgewählte Adressbuch löschen?"; +"Are you sure you want to delete the selected contacts?" += "Wollen Sie wirklich die ausgewählte Karten löschen?"; "You cannot delete the selected contact(s)" = "Ausgewählte Karten können nicht gelöscht werden."; diff --git a/UI/Contacts/Italian.lproj/Localizable.strings b/UI/Contacts/Italian.lproj/Localizable.strings index 8610bbee1..51d3c33d5 100644 --- a/UI/Contacts/Italian.lproj/Localizable.strings +++ b/UI/Contacts/Italian.lproj/Localizable.strings @@ -129,6 +129,10 @@ "Name of the Address Book" = "Nome della rubrica"; "Are you sure you want to delete the selected address book?" = "Sei sicuro di voler cancellare la rubrica selezionata?"; +"Are you sure you want to delete the selected contacts?" += "Sei sicuro di voler eliminare i contatti selezionati?"; + += "Are you sure you want to delete the selected contacts?"; "Address Book Name" = "Nome della Rubrica"; diff --git a/UI/Contacts/Spanish.lproj/Localizable.strings b/UI/Contacts/Spanish.lproj/Localizable.strings index 7f35b337b..d80a9bb61 100644 --- a/UI/Contacts/Spanish.lproj/Localizable.strings +++ b/UI/Contacts/Spanish.lproj/Localizable.strings @@ -120,6 +120,8 @@ "Name of the Address Book" = "Nombre de la libreta"; "Are you sure you want to delete the selected address book?" = "¿Está seguro/a que desea borrar la libreta de direcciones seleccionada?"; +"Are you sure you want to delete the selected contacts?" += "¿Está seguro/a que desea borrar el/los contacto(s) seleccionado(s)?"; "You cannot delete the selected contact(s)" = "No puede borrar el/los contacto(s) seleccionado(s)."; diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index 156c236dd..20f0bb327 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -435,11 +435,15 @@ function onToolbarDeleteSelectedContacts(event) { var rows = contactsList.getSelectedRowsId(); if (rows.length) { - for (var i = 0; i < rows.length; i++) { - delete cachedContacts[Contact.currentAddressBook + "/" + rows[i]]; - var urlstr = (URLForFolderID(Contact.currentAddressBook) + "/" - + rows[i] + "/delete"); - triggerAjaxRequest(urlstr, onContactDeleteEventCallback, rows[i]); + var label = labels["Are you sure you want to delete the selected contacts?"]; + if (window.confirm(label)) { + for (var i = 0; i < rows.length; i++) { + delete cachedContacts[Contact.currentAddressBook + "/" + rows[i]]; + var urlstr = (URLForFolderID(Contact.currentAddressBook) + "/" + + rows[i] + "/delete"); + triggerAjaxRequest(urlstr, onContactDeleteEventCallback, + rows[i]); + } } } else {