]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix for faulty on selector 9168/head
authorDominique Clijsters <dominique.clijsters@gmail.com>
Fri, 9 Sep 2016 09:05:41 +0000 (11:05 +0200)
committerGitHub <noreply@github.com>
Fri, 9 Sep 2016 09:05:41 +0000 (11:05 +0200)
Add missing quotation marks to hash

js/foundation/foundation.magellan.js

index 8d1aae3a57a8e85f292d25982c523bbf0b2a9f07..37c35fd1a5e5011f86fd0e9845a761e300ed72e0 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'),