Fixed sitemap tab menu
authorAlexander Ebert <ebert@woltlab.com>
Thu, 8 Nov 2012 23:05:25 +0000 (00:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 8 Nov 2012 23:05:25 +0000 (00:05 +0100)
com.woltlab.wcf/template/sitemap.tpl
wcfsetup/install/files/js/WCF.js

index 44e20e60cd17b942fd07f1ea80bc2ebd22576c5c..e5b145d569e572c5e4672b91cfb3e76e2185a0a6 100644 (file)
@@ -1,18 +1,18 @@
 <div class="sitemap">
        {hascontent}
-               <div class="tabMenuContainer" data-active="sitemap-{@$defaultSitemapName}">
+               <div class="tabMenuContainer" data-active="sitemap_{@$defaultSitemapName}">
                        <nav class="tabMenu">
                                <ul>
                                        {content}
                                                {foreach from=$tree item=sitemapName}
-                                                       <li><a href="#sitemap-{$sitemapName}" class="sitemapNavigation" data-sitemap-name="{$sitemapName}">{lang}wcf.sitemap.{$sitemapName}{/lang}</a></li>
+                                                       <li><a href="#sitemap_{$sitemapName}" class="sitemapNavigation" data-sitemap-name="{$sitemapName}">{lang}wcf.sitemap.{$sitemapName}{/lang}</a></li>
                                                {/foreach}
                                        {/content}
                                </ul>
                        </nav>
                        
                        {foreach from=$tree item=sitemapName}
-                               <div id="sitemap-{$sitemapName}" class="container containerPadding tabMenuContent hidden">
+                               <div id="sitemap_{$sitemapName}" class="container containerPadding tabMenuContent hidden">
                                        {if $sitemapName == $defaultSitemapName}{@$sitemap}{/if}
                                </div>
                        {/foreach}
index 4e696eb0d007da361f252439930aa95993615247..03da80c74190399752ad53707e8ed72ca3df28fa 100755 (executable)
@@ -6588,7 +6588,7 @@ WCF.Sitemap = Class.extend({
                if (this._didInit) {
                        this._cache.push(data.returnValues.sitemapName);
                        
-                       this._dialog.find('#sitemap-' + data.returnValues.sitemapName).html(data.returnValues.template);
+                       this._dialog.find('#sitemap_' + data.returnValues.sitemapName).html(data.returnValues.template);
                        
                        // redraw dialog
                        this._dialog.wcfDialog('render');
@@ -6620,7 +6620,7 @@ WCF.Sitemap = Class.extend({
        _navigate: function(event) {
                var $sitemapName = $(event.currentTarget).data('sitemapName');
                if (WCF.inArray($sitemapName, this._cache)) {
-                       this._dialog.find('.tabMenuContainer').wcfTabs('select', 'sitemap-' + $sitemapName);
+                       this._dialog.find('.tabMenuContainer').wcfTabs('select', 'sitemap_' + $sitemapName);
                        
                        // redraw dialog
                        this._dialog.wcfDialog('render');