(js) Allow to change the labels of Dialog.confirm

This commit is contained in:
Francis Lachapelle
2015-08-06 16:19:42 -04:00
parent 9465fbad4b
commit eb543ce14f
2 changed files with 5 additions and 4 deletions
@@ -99,7 +99,8 @@
}
function confirmDelete(card) {
Dialog.confirm(l('Warning'),
l('Are you sure you want to delete the card of %{0}?', card.$fullname()))
l('Are you sure you want to delete the card of %{0}?', card.$fullname()),
{ok: l('Yes'), cancel: l('No')})
.then(function() {
// User confirmed the deletion
card.$delete()