<ul class="navigationIcons">
<li id="toBottomLink"><a href="{$__wcf->getAnchor('bottom')}" title="{lang}wcf.global.scrollDown{/lang}" class="jsTooltip"><span class="icon icon16 icon-arrow-down"></span> <span class="invisible">{lang}wcf.global.scrollDown{/lang}</span></a></li>
- <li id="sitemap" class="jsOnly"><a title="{lang}wcf.page.sitemap{/lang}" class="jsTooltip"><span class="icon icon16 icon-sitemap"></span> <span class="invisible">{lang}wcf.page.sitemap{/lang}</span></a></li>
+ <li id="sitemap" class="jsOnly"><a href="#" title="{lang}wcf.page.sitemap{/lang}" class="jsTooltip"><span class="icon icon16 icon-sitemap"></span> <span class="invisible">{lang}wcf.page.sitemap{/lang}</span></a></li>
{if $headerNavigation|isset}{@$headerNavigation}{/if}
{event name='navigationIcons'}
</ul>
* @param object event
*/
_click: function(event) {
+ event.preventDefault();
var $button = $(event.currentTarget);
this._proxy.setOption('data', {
/**
* Handles clicks on the sitemap icon.
*/
- _click: function() {
+ _click: function(event) {
+ event.preventDefault();
+
if (this._dialog === null) {
this._dialog = $('<div id="sitemapDialog" />').appendTo(document.body);
* Initializes the style chooser class.
*/
init: function() {
- $('<li class="styleChooser"><a>' + WCF.Language.get('wcf.style.changeStyle') + '</a></li>').appendTo($('#footerNavigation > ul.navigationItems')).click($.proxy(this._showDialog, this));
+ $('<li class="styleChooser"><a href="#">' + WCF.Language.get('wcf.style.changeStyle') + '</a></li>').appendTo($('#footerNavigation > ul.navigationItems')).click($.proxy(this._showDialog, this));
this._proxy = new WCF.Action.Proxy({
success: $.proxy(this._success, this)
* Displays the style chooser dialog.
*/
_showDialog: function() {
+ event.preventDefault();
+
if (this._dialog === null) {
this._dialog = $('<div id="styleChooser" />').hide().appendTo(document.body);
this._loadDialog();