Added a-tag within main menu
authorAlexander Ebert <ebert@woltlab.com>
Tue, 25 Oct 2011 14:02:35 +0000 (16:02 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 25 Oct 2011 14:02:35 +0000 (16:02 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/acp/templates/header.tpl

index a382ab74741322dacf1a8d131766c3edf4c992a1..9a1fab0493c0821d905ed1fb2d0018d3668fbf6c 100644 (file)
@@ -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'), []);
        },
        
        /**
index d19e3be367cf51f786946c297c8de4360e7e1607..715c3a03a4c25df6b87ebb0aba171987aa2bd2c3 100644 (file)
                                {if PACKAGE_ID}
                                        <ul>
                                                {foreach from=$__wcf->getACPMenu()->getMenuItems('') item=menuItem}
-                                                       <li data-menuItem="{$menuItem->menuItem}">{lang}{@$menuItem->menuItem}{/lang}</li>
+                                                       <li data-menuItem="{$menuItem->menuItem}"><a>{lang}{@$menuItem->menuItem}{/lang}</a></li>
                                                {/foreach}
                                        </ul>
                                {/if}