]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
updates tabs to check for preexisting ids on content links
authorChris Oyler <chris@zurb.com>
Tue, 19 Jan 2016 17:47:46 +0000 (09:47 -0800)
committerChris Oyler <chris@zurb.com>
Tue, 19 Jan 2016 17:47:46 +0000 (09:47 -0800)
js/foundation.tabs.js

index ce030d6f9589e084d97aa6de1473d7be5715262d..3a1a06fcf80c18b2b2a0d34e01de815a40fb8e24 100644 (file)
@@ -89,7 +89,7 @@
           $link = $elem.find('a'),
           isActive = $elem.hasClass('is-active'),
           hash = $link[0].hash.slice(1),
-          linkId = hash + '-label',
+          linkId = $link[0].id ? $link[0].id : hash + '-label',
           $tabContent = $('#' + hash);
 
       $elem.attr({'role': 'presentation'});