From a2f01563ce1275306c94cc28fac4eceed8c30d5d Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 20 Oct 2013 21:24:56 +0200 Subject: [PATCH] Fixed a few issues with flexible menus --- com.woltlab.wcf/templates/headInclude.tpl | 2 +- wcfsetup/install/files/js/WCF.js | 10 +++++----- wcfsetup/install/files/style/layout.less | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/com.woltlab.wcf/templates/headInclude.tpl b/com.woltlab.wcf/templates/headInclude.tpl index e6ad479e00..a7333e36a7 100644 --- a/com.woltlab.wcf/templates/headInclude.tpl +++ b/com.woltlab.wcf/templates/headInclude.tpl @@ -140,7 +140,6 @@ }); if (jQuery.browser.touch) $('html').addClass('touch'); - WCF.System.FlexibleMenu.init(); new WCF.Date.Time(); new WCF.Effect.SmoothScroll(); new WCF.Effect.BalloonTooltip(); @@ -150,6 +149,7 @@ WCF.System.PageNavigation.init('.pageNavigation'); WCF.Date.Picker.init(); new WCF.User.ProfilePreview(); + WCF.System.FlexibleMenu.init(); {event name='javascriptInit'} diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 0f921d9052..3842b6799e 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -5943,7 +5943,7 @@ WCF.System.FlexibleMenu = { this._containerIDs.push(containerID); this._containers[containerID] = $container; this._menuItems[containerID] = $container.find('> ul:eq(0) > li'); - this._dropdowns[containerID] = $('').data('containerID', containerID).hide().appendTo($container.children('ul')).click($.proxy(this._click, this)); + this._dropdowns[containerID] = $('').data('containerID', containerID).hide().appendTo($container.children('ul:eq(0)')).click($.proxy(this._click, this)); this._dropdownMenus[containerID] = $('