From: Alexander Ebert Date: Tue, 25 Oct 2011 14:02:35 +0000 (+0200) Subject: Added a-tag within main menu X-Git-Tag: 2.0.0_Beta_1~1660 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b2eb388fe2d87b2a4184729c15259ddbba741e7;p=GitHub%2FWoltLab%2FWCF.git Added a-tag within main menu --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index a382ab7474..9a1fab0493 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -70,11 +70,13 @@ WCF.ACP.Menu.prototype = { * @param object event */ _toggleSidebar: function(event) { - if ($(event.target).hasClass('activeMenuItem')) { + var $target = $(event.target).parent(); + + if ($target.hasClass('activeMenuItem')) { return; } - this._renderSidebar($(event.target).data('menuItem'), []); + this._renderSidebar($target.data('menuItem'), []); }, /** diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index d19e3be367..715c3a03a4 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -118,7 +118,7 @@ {if PACKAGE_ID} {/if}