]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Only preventDefault on click on [data-toggle="modal"] when the element is a link 10834/head
authorAlexander Prinzhorn <alex@nder-prinzhorn.de>
Fri, 27 Sep 2013 09:32:06 +0000 (11:32 +0200)
committerAlexander Prinzhorn <alex@nder-prinzhorn.de>
Fri, 27 Sep 2013 09:32:06 +0000 (11:32 +0200)
commit12a3bb31f82b7fee96dbd5d91f4a5bef90c7acd6
treefaff48b14e548e028c5a8e1dbffebe5ea42a8e1e
parenteb3807609a936ba7fb6b032395c07071ab46beac
Only preventDefault on click on [data-toggle="modal"] when the element is a link

In it's current state Bootstrap always prevents the default action for a click
event on `[data-toggle="modal"]` elements
(see https://github.com/twbs/bootstrap/blob/master/js/modal.js#L233).
Instead this should only happen when the element is a link.
js/modal.js