]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix scrollSpy instructions for JS call
authorFlorian Weber <florian@florianweber.me>
Mon, 5 Aug 2013 21:37:08 +0000 (23:37 +0200)
committerFlorian Weber <florian@florianweber.me>
Mon, 5 Aug 2013 21:37:08 +0000 (23:37 +0200)
Don't really know if this is correct, but at least it only worked for me that way...

javascript.html

index aa65eabe8fa8f813eb471d7bb42604c3b09504a0..d1aa0c730f4b39e80de642c9045d3cfb5a0c456d 100644 (file)
@@ -531,7 +531,7 @@ $('.dropdown-toggle').dropdown()
     <h3>Via JavaScript</h3>
     <p>Call the scrollspy via JavaScript:</p>
 {% highlight js %}
-$('#navbar-example').scrollspy(options)
+$('body').scrollspy({ target: '#navbar-example' )
 {% endhighlight %}
 
     <div class="bs-callout bs-callout-danger">