]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Escape '#' in Magellan anchor selector 8184/head
authorAhmad Abdel-Yaman <a.yaman@gmail.com>
Wed, 17 Feb 2016 12:17:01 +0000 (14:17 +0200)
committerAhmad Abdel-Yaman <a.yaman@gmail.com>
Wed, 17 Feb 2016 12:17:01 +0000 (14:17 +0200)
js/foundation/foundation.magellan.js

index caff838225fcb5710c5ee69cda8babcbdb9450ab..8d1aae3a57a8e85f292d25982c523bbf0b2a9f07 100644 (file)
@@ -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'),