I want to change modal behavior after certain event.
$('.myModal').modal('show'); // default behavior - user can close modal on ESC
$(button).click(function(){
$('.myModal').modal({keyboard:false}); // override
// prevous line code does not work as i expect,
// user can close modal with ESC
$('.myModal').data('modal').option.keyboard = false; // even this code doesn't work
});
Any help will be appreciated