How can I call a custom alert when I click on the delete button inside the modal.

How can I call a custom alert when I click on the delete button inside the modal.

abhinav0419@gmail.comabhinav0419@gmail.com Posts: 5Questions: 3Answers: 0

I have below code which works fine
//Delete a Record
jQ('#example').on('click', 'a.editor_remove', function (e) {
e.preventDefault();
deleteRecordModule.deleteRecordRow();
editor.remove( jQ(this).closest('tr'), {
title: 'Delete record',
message: 'Are you sure you wish to remove this record?',
buttons: 'Delete'
} );
} );

Now my problem is that in this code inside editor.remove function I have a delete button and I want to call another function when user clicks on this button and also pass to that function the row parameters? I have tried but I have not been successful. Can someone tell me how can I achieve this? Thanks

This discussion has been closed.