From 6b2eb388fe2d87b2a4184729c15259ddbba741e7 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 25 Oct 2011 16:02:35 +0200 Subject: [PATCH] Added a-tag within main menu --- wcfsetup/install/files/acp/js/WCF.ACP.js | 6 ++++-- wcfsetup/install/files/acp/templates/header.tpl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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} -- 2.20.1