I'm having the same issue. I want to prevent closing the modal when clicking outside the modal.
What i find strange is that it works the way I want in the sample http://jsfiddle.net/dwmkerr/8MVLJ/
Using the same setup from the sample, but with different versions of js libraries, the modal closes when clicking outside.
Closing the bootstrap modal is not the issue, the problem is not closing it unless my "close()" function is called from the view.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In case someone finds this useful, this is how I managed to prevent closing the modal:
Right before showing the modal with
modal.element.modal();
set the modal like this
$('#curvasModal').modal({
backdrop: 'static',
keyboard: true
});
modal.element.modal();
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is a link to the bootstrap modal options. For those wondering it tells you what is being defaulted here. If the above solution doesn't work try to add in 'show: true' to the options to tell it to allow you to initialize and show it in one go.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: dwmkerr
Hi,
Please see the FAQ on the read me page. There is a section describing how
to close a bootstrap modal.
On Sunday, March 22, 2015, Max notifications@github.com wrote:
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: josevillacreses
I'm having the same issue. I want to prevent closing the modal when clicking outside the modal.
What i find strange is that it works the way I want in the sample http://jsfiddle.net/dwmkerr/8MVLJ/
Using the same setup from the sample, but with different versions of js libraries, the modal closes when clicking outside.
Closing the bootstrap modal is not the issue, the problem is not closing it unless my "close()" function is called from the view.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: josevillacreses
In case someone finds this useful, this is how I managed to prevent closing the modal:
Right before showing the modal with
modal.element.modal();
set the modal like this
$('#curvasModal').modal({
backdrop: 'static',
keyboard: true
});
modal.element.modal();
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: lindamarieb
The only thing that worked for me was this:
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ledgeJumper
@josevillacreses that worked for me, thanks! FYI, you can do it in one call instead of the two you have. So replace:
with
Here is a link to the bootstrap modal options. For those wondering it tells you what is being defaulted here. If the above solution doesn't work try to add in 'show: true' to the options to tell it to allow you to initialize and show it in one go.