mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-27 09:40:23 +00:00
listen to window for dropdown clear
This commit is contained in:
parent
90e3a706ba
commit
314feb702f
2 changed files with 1 additions and 10 deletions
|
|
@ -15,15 +15,6 @@ $(function(){
|
|||
}, 0);
|
||||
|
||||
|
||||
// Docs topbar nav
|
||||
// ===============
|
||||
|
||||
$('.nav .active').on('click', function (e) {
|
||||
e.preventDefault()
|
||||
$(this).siblings().toggle()
|
||||
});
|
||||
|
||||
|
||||
// table sort example
|
||||
// ==================
|
||||
|
||||
|
|
|
|||
2
js/bootstrap-dropdown.js
vendored
2
js/bootstrap-dropdown.js
vendored
|
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue