]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #4473: docs example typo for js affix plugin
authorMark Otto <markotto@twitter.com>
Tue, 21 Aug 2012 19:58:48 +0000 (12:58 -0700)
committerMark Otto <markotto@twitter.com>
Tue, 21 Aug 2012 19:58:48 +0000 (12:58 -0700)
docs/javascript.html
docs/templates/pages/javascript.mustache

index f6c8c428b0dcd4e51f1bd236b53a7e65b30b0f67..3480f2b78b5c6efa28929fee5b329f0dbbe9461c 100644 (file)
@@ -1606,7 +1606,7 @@ $('.carousel').carousel({
             <h3>Via data attributes</h3>
             <p>To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.</p>
 
-            <pre class="prettyprint linenums">&lt;div data-spy="affix" data-offset-top="200"&gt;...&lt;/body&gt;</pre>
+            <pre class="prettyprint linenums">&lt;div data-spy="affix" data-offset-top="200"&gt;...&lt;/div&gt;</pre>
 
             <div class="alert alert-info">
               <strong>Heads up!</strong>
index c9e1b612b058bf9d18129c8d937eb35d69a50228..a1230d83fd596d14b1cf6995fade2ae62a665d58 100644 (file)
@@ -1536,7 +1536,7 @@ $('.carousel').carousel({
             <h3>{{_i}}Via data attributes{{/i}}</h3>
             <p>{{_i}}To easily add affix behavior to any element, just add <code>data-spy="affix"</code> to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.{{/i}}</p>
 
-            <pre class="prettyprint linenums">&lt;div data-spy="affix" data-offset-top="200"&gt;...&lt;/body&gt;</pre>
+            <pre class="prettyprint linenums">&lt;div data-spy="affix" data-offset-top="200"&gt;...&lt;/div&gt;</pre>
 
             <div class="alert alert-info">
               <strong>{{_i}}Heads up!{{/i}}</strong>