]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Change joyride call on layout.
authorJordan Humphreys <jordan@mailyard.net>
Thu, 21 Mar 2013 22:50:04 +0000 (15:50 -0700)
committerJordan Humphreys <jordan@mailyard.net>
Thu, 21 Mar 2013 22:50:04 +0000 (15:50 -0700)
docs/components/joyride.html.erb
docs/layout.html.erb

index dfa9e5b9829e55a127fa8d1eee6b6680018eb873..dadf222d12da872d340bd00e650a49d5089e35d3 100644 (file)
@@ -1,5 +1,8 @@
 
-<% @side_nav = "js" %>
+<% 
+  @side_nav = "js" 
+  @joyride = true
+%>
 <div class="row">
   <div class="large-9 push-3 columns">
 
index af8d957d91d57e8fa06f75ac510def5811a8345a..0888f16bb7926d4720518209a46912d8de4fe49c 100644 (file)
     <script src="<%= asset_path %>/docs.js"></script>
     <script>
       $(document)
+      <% if @joyride %>
         .foundation()
         .foundation('joyride', 'start');
+      <% else %>
+        .foundation();
+      <% end %>
 
       // For Kitchen Sink Page
       $('#start-jr').on('click', function() {