bootstrap modal disable auto close code example
Example 1: bootstrap modal prevent close
$('#myModal').modal({backdrop: 'static', keyboard: false})
Example 2: bootstrap modal don't dismiss
<div class="modal fade" id="myModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">