When I open a jQuery.confirm plugin modal on a bootstrap modal and then close it; the focus on the launching bootstrap modal gets lost. (The focus moves to the background) so I cannot scroll on the bootstrap modal anymore. How can I solve this?Can sb tell me please?Can I ask it to explicitely set focus on boostrap modal not the background?
function deleteRelationship(e)
{
var grid = this;
var loadRelationDeletePopup = function () {
e.preventDefault();
var dataItem = grid.dataItem($(e.currentTarget).closest("tr"));
var id = dataItem.ID;
var formdata = "ID=" + id;
$.ajax({
url: '@Url.Action(MVC.Role.ActionNames.DeleteRelationship, MVC.Role.Name)',
type: 'POST',
data: formdata,
success: function (result) {
$("#relationshipsGrid").data('kendoGrid').dataSource.read();
}
});
return false;
}
notify.Confirm("Warning", "Are you sure", loadRelationDeletePopup);
}
notify.Confirm(title,message,handler method)
wraps a jQuery.modal.