bootstrap modal prevent to close code example
Example 1: bootstrap modal don't dismiss
<div class="modal fade" id="myModal" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
Example 2: do not close dialog box when click outside bootstrap modal
<div id="idModal" class="modal hide" data-backdrop="static" data-keyboard="false">