I am deleting in jquery jtable. It checks for constraint and returns an error. When i press close button of that error the deleteDialog reappears. I don't want the dialog to reappear, instead i want the dialog to be closed and the jtable to be loaded. Is there any recordsNotDeleted event in jtable? Please Help
On closing the Dialog with the title of Attention i want this dialog plus the dialog with the title of Are you sure? to be closed
This did the trick for me.
$("button[role='button']:contains('Close')").click(function () {
$('.ui-dialog').filter(function () {
return $(this).css("display") === "block";
}).find('.ui-dialog-content').dialog('close');
});
reference: Close dialog on click (anywhere)