- Add confirm before call on ldc-messages/script.js

This commit is contained in:
Vincent BRIDIER 2021-01-28 11:30:29 +01:00
parent 060dfb6f36
commit d5a0e8bc8e

View file

@ -75,10 +75,15 @@ $j(function(){
$j('#reponse-msg').empty().html(response);
}
);
})
});
$j('body').on('click', '.mark-msg', function (e) {
e.preventDefault();
let test = confirm("Êtes-vous sûr(e) ?");
if (!test)
return;
let self = this,
currentMsg = $j(self).data('id'),
$tdStatus = $j(self).parents('tr').eq(0).children('td').eq(2),