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.
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?
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.
I found this link Prevent Bootstrap Modal from disappearing when clicking outside or pressing escape?. Good but I need to close it only when user is uploading file. So i can’t set ‘backdrop’ to ‘static’ from the start.
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.