(js) Improve confirm dialogs for deletions

This commit is contained in:
Francis Lachapelle
2016-02-10 10:52:46 -05:00
parent 693f80dc9a
commit 37f4b11834
7 changed files with 12 additions and 6 deletions
@@ -89,7 +89,8 @@
function confirmDeleteSelectedCards() {
Dialog.confirm(l('Warning'),
l('Are you sure you want to delete the selected contacts?'))
l('Are you sure you want to delete the selected contacts?'),
{ ok: l('Delete') })
.then(function() {
// User confirmed the deletion
var selectedCards = _.filter(vm.selectedFolder.cards, function(card) { return card.selected; });