title: Prevent yii modal popup from closing using jquery
body: <p>Hi I am working on a yii framework. I am using Twitter bootstrap and I have loaded my popups using customize ajax so that after closing they are removed from DOM. </p>
  
  <p>I want to prevent popup from closing when user by mistake click on overlay when a file is uploading. Can anyone tell me how to do this?</p>
  
  <p>I found an event 'hide.bs.modal' is triggered when closing of popup is triggered but i am failing to prevent popup from closing. Please help.</p>
  
  <p>@thanks hamad.
  I found this link <a href="https://stackoverflow.com/questions/16152073/prevent-bootstrap-modal-from-disappearing-when-clicking-outside-or-pressing-esca/16155852#16155852">Prevent Bootstrap Modal from disappearing when clicking outside or pressing escape?</a>. Good but I need to close it only when user is uploading file. So i can't set 'backdrop' to 'static' from the start.</p>
  
  <p>I have someone made the popup backdrop:static dynamically. But i am unable to dynamically remove backdrop:static property. I tried 
  $("#model-id").data('modal').options.backdrop = false;
  But this do not work. My popup is still doesn't close when I click out side.</p>
  
  <p>Please help.</p>