]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Make sure that going back to the first tab actually updates the hash. 6607/head
authorSam Marks <sam@sammarks.me>
Thu, 4 Jun 2015 19:54:34 +0000 (15:54 -0400)
committerSam Marks <sam@sammarks.me>
Thu, 4 Jun 2015 19:54:34 +0000 (15:54 -0400)
js/foundation/foundation.tab.js

index da042186dc3a725b7b44acf9e66ee7523eaba2f3..45d15c6f06f4577389ba4b4cf154a435e9713f28 100644 (file)
             // the user would get continually redirected to the default hash.
             var default_hash = settings.scroll_to_content ? self.default_tab_hashes[0] : 'fndtn-' + self.default_tab_hashes[0].replace('#', '');
 
-            if (hash !== default_hash) {
+            if (hash !== default_hash || window.location.hash) {
               window.location.hash = hash;
             }
           };