mail: fix mail removal confirmation dialog
This commit is contained in:
parent
624adf7478
commit
04bfcee98c
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue