From 8111944e18a3fd005dbdb9540664dcf722f75105 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 15 Mar 2013 21:10:02 +0100 Subject: [PATCH] Fixes condition --- wcfsetup/install/files/js/WCF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index ab786a7c12..e775a6833b 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1615,7 +1615,7 @@ WCF.Action.Proxy = Class.extend({ // fix anchor tags generated through WCF::getAnchor() $('a[href*=#]').each(function(index, link) { var $link = $(link); - if ($link.prop('href').indexOf('AJAXProxy')) { + if ($link.prop('href').indexOf('AJAXProxy') != -1) { var $anchor = $link.prop('href').substr($link.prop('href').indexOf('#')); var $pageLink = document.location.toString().replace(/#.*/, ''); $link.prop('href', $pageLink + $anchor); -- 2.20.1