Fixes condition
authorMatthias Schmidt <gravatronics@live.com>
Fri, 15 Mar 2013 20:10:02 +0000 (21:10 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 15 Mar 2013 20:10:02 +0000 (21:10 +0100)
wcfsetup/install/files/js/WCF.js

index ab786a7c12aa129782c4cf7a6a18bb165fc9c9ee..e775a6833b4df2526ca5f0920fd0a58c63ab62bf 100755 (executable)
@@ -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);