]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Hopefully a fix for #12364 13627/head
authorChris Rebert <code@rebertia.com>
Mon, 19 May 2014 08:25:52 +0000 (01:25 -0700)
committerChris Rebert <code@rebertia.com>
Mon, 19 May 2014 09:14:14 +0000 (02:14 -0700)
commitb058c018eba059811f0c26074b813b843cfb5cb7
tree1a0e830b1d4f4d22b23d4b11813981b45546bcec
parent7d75734e10853806d3ef8022181c7b8e81e88014
Hopefully a fix for #12364

* register the callback before invoking the toggling
* listen for `hidden` instead of `hide`
* account for the possibility of the associated `show` event being preventDefault-ed

Adds relevant unit tests.
js/modal.js
js/tests/unit/modal.js