Update pageMenuMobile.tpl
authorMorik <Sebastian.Zimmer@gmx.net>
Wed, 2 Jan 2019 23:22:26 +0000 (00:22 +0100)
committerGitHub <noreply@github.com>
Wed, 2 Jan 2019 23:22:26 +0000 (00:22 +0100)
com.woltlab.wcf/templates/pageMenuMobile.tpl

index 5a94d25747692d0bd24d8a4ed13d75129051578e..0c14793974db79ffee408824f61739ef1ff97864 100644 (file)
@@ -3,7 +3,8 @@
        <ol class="menuOverlayItemList" data-title="{lang}wcf.menu.page{/lang}">
                <li class="menuOverlayTitle">{lang}wcf.menu.page.navigation{/lang}</li>
                {foreach from=$__wcf->getBoxHandler()->getBoxByIdentifier('com.woltlab.wcf.MainMenu')->getMenu()->getMenuItemNodeList() item=menuItemNode}
-                       <li class="menuOverlayItem" data-identifier="{@$menuItemNode->identifier}">
+                       {* Does not use `data-identifier` to prevent compatibility issues. See https://github.com/WoltLab/WCF/pull/2813 *}
+                       <li class="menuOverlayItem" data-mobile-identifier="{@$menuItemNode->identifier}">
                                {assign var=__outstandingItems value=$menuItemNode->getOutstandingItems()}
                                <a href="{$menuItemNode->getURL()}" class="menuOverlayItemLink{if $__outstandingItems} menuOverlayItemBadge{/if}{if $menuItemNode->isActiveNode()} active{/if}"{if $menuItemNode->isExternalLink() && EXTERNAL_LINK_TARGET_BLANK} target="_blank"{/if}>
                                        <span class="menuOverlayItemTitle">{lang}{$menuItemNode->title}{/lang}</span>