Fixed erroneous tab menu
authorAlexander Ebert <ebert@woltlab.com>
Tue, 30 Oct 2012 22:39:48 +0000 (23:39 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 30 Oct 2012 22:39:48 +0000 (23:39 +0100)
Fixes #871

wcfsetup/install/files/js/WCF.js

index 312ecdd3d58d22d7f460008a5d7840495a3559a7..dd38ba567a433a02324935d2608f4f43cbb02f36 100755 (executable)
@@ -2856,7 +2856,7 @@ WCF.TabMenu = {
                                }
                        });
                        
-                       $tabMenu.data('isParent', ($tabMenu.children('.tabMenuContainer').length > 0)).data('parent', false);
+                       $tabMenu.data('isParent', ($tabMenu.children('.tabMenuContainer, .tabMenuContent').length > 0)).data('parent', false);
                        if (!$tabMenu.data('isParent')) {
                                // check if we're a child element
                                if ($tabMenu.parent().hasClass('tabMenuContainer')) {