From: Matthias Schmidt Date: Mon, 29 Jul 2013 20:24:54 +0000 (+0200) Subject: Closes dropdowns when scrolling X-Git-Tag: 2.0.0_Beta_6~16^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=45c0c65b6dda1ba63d6b4e0df9d05f1223af55cb;p=GitHub%2FWoltLab%2FWCF.git Closes dropdowns when scrolling --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0742818ef8..2fa998a668 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -736,6 +736,8 @@ WCF.Dropdown = { WCF.CloseOverlayHandler.addCallback('WCF.Dropdown', $.proxy(this._closeAll, this)); WCF.DOMNodeInsertedHandler.addCallback('WCF.Dropdown', $.proxy(this.init, this)); } + + $(document).on('scroll', $.proxy(this._toggle, this)); }, /**