]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Run make on previous commits
authorMark Otto <otto@github.com>
Wed, 26 Dec 2012 19:59:01 +0000 (13:59 -0600)
committerMark Otto <otto@github.com>
Wed, 26 Dec 2012 19:59:01 +0000 (13:59 -0600)
docs/javascript.html

index fe7f750c0cb8cf08e458a2f0c793b7c076e904cb..2d01af561f17fcd31b808d73544d5e7a250b7db1 100644 (file)
@@ -571,12 +571,12 @@ $('#myModal').on('hidden', function () {
           <h2>Usage</h2>
 
           <h3>Via data attributes</h3>
-          <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll need to use scrollspy with a <code>.nav</code> component.</p>
+          <p>To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to use scrollspy with a <code>.nav</code> component.</p>
           <pre class="prettyprint linenums">&lt;body data-spy="scroll" data-target=".navbar"&gt;...&lt;/body&gt;</pre>
 
           <h3>Via JavaScript</h3>
           <p>Call the scrollspy via JavaScript:</p>
-          <pre class="prettyprint linenums">$('body').scrollspy(options)</pre>
+          <pre class="prettyprint linenums">$('#navbar').scrollspy()</pre>
 
           <div class="alert alert-info">
             <strong>Heads up!</strong>
@@ -604,12 +604,6 @@ $('[data-spy="scroll"]').each(function () {
              </tr>
             </thead>
             <tbody>
-             <tr>
-               <td>target</td>
-               <td>selector</td>
-               <td>'body'</td>
-               <td>Nav target to be updated on scroll. (Scrollspy looks for <code>.nav li > a</code> inside this target.)</td>
-             </tr>
              <tr>
                <td>offset</td>
                <td>number</td>