]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
allow tabs on mobile if tab class present.
authorJordan Humphreys <jordan@mailyard.net>
Fri, 15 Mar 2013 22:54:24 +0000 (15:54 -0700)
committerJordan Humphreys <jordan@mailyard.net>
Fri, 15 Mar 2013 22:54:24 +0000 (15:54 -0700)
docs/components/section.html.erb
js/foundation/foundation.section.js

index 0d62155b65ae9fe4c14ce8e8c691c2d14c2328b7..e2685768db3dacb9094685b8bab90ba5fdcf0e88 100644 (file)
@@ -65,7 +65,7 @@
                 </div>
               </section>
             </div>
-            <div class="section-container tabs" data-section data-options="deep_linking: true; force_tabs: true">
+            <div class="section-container tabs" data-section data-options="deep_linking: true;">
               <section class="section">
                 <p class="title"><a href="#panel1">Section 1</a></p>
                 <div class="content" data-slug="panel1">
index ad0d905e33c8d7a541e57e5355e8e6d4d716bea7..0e226b4fd2f5916cd22c93469a77e3767b1be896 100644 (file)
@@ -11,7 +11,6 @@
     settings : {
       deep_linking: false,
       one_up: true,
-      force_tabs: false,
       callback: function (){}
     },
 
 
     small : function (el) {
       var settings = $.extend({}, this.settings, this.data_options(el));
-
-      if (settings.force_tabs) {
+      if (el && el.hasClass('tabs')) {
         return false;
       }
       if (el && this.is_accordion(el)) {