- Add confirm before call on ldc-messages/script.js
This commit is contained in:
parent
060dfb6f36
commit
d5a0e8bc8e
1 changed files with 6 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue