From: Ahmad Abdel-Yaman Date: Wed, 17 Feb 2016 12:17:01 +0000 (+0200) Subject: Escape '#' in Magellan anchor selector X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8184%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Escape '#' in Magellan anchor selector --- diff --git a/js/foundation/foundation.magellan.js b/js/foundation/foundation.magellan.js index caff83822..8d1aae3a5 100644 --- a/js/foundation/foundation.magellan.js +++ b/js/foundation/foundation.magellan.js @@ -32,7 +32,7 @@ S(self.scope) .off('.magellan') - .on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href*=#]', function (e) { + .on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href*=\\#]', function (e) { var sameHost = ((this.hostname === location.hostname) || !this.hostname), samePath = self.filterPathname(location.pathname) === self.filterPathname(this.pathname), testHash = this.hash.replace(/(:|\.|\/)/g, '\\$1'),