0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

listen to window for dropdown clear

This commit is contained in:
Jacob Thornton 2012-01-05 18:32:08 -08:00
parent 90e3a706ba
commit 314feb702f
2 changed files with 1 additions and 10 deletions

View File

@ -15,15 +15,6 @@ $(function(){
}, 0);
// Docs topbar nav
// ===============
$('.nav .active').on('click', function (e) {
e.preventDefault()
$(this).siblings().toggle()
});
// table sort example
// ==================

View File

@ -74,7 +74,7 @@
* =================================== */
$(function () {
$('html').on('click.dropdown.data-api', clearMenus)
$(window).on('click.dropdown.data-api', clearMenus)
$('body').on('click.dropdown.data-api', toggle, Dropdown.prototype.toggle)
})