mail: fix mail removal confirmation dialog

This commit is contained in:
Frédéric Péters 2015-10-28 17:03:05 +01:00
parent 624adf7478
commit 04bfcee98c
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ $(function() {
});
$('.document').delegate('button.reject', 'click', function() {
confirm("Confirmer la suppression de ce courrier");
if (confirm("Confirmer la suppression de ce courrier") != true) {
return false;
}
var source_type = $('div.source div[data-source-type]').data('source-type');
var source_pk = $('div.source .active[data-source-pk]').data('source-pk');
$.ajax({url: $(this).data('action-url'),