diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html index b95bb6c5ffb4294a1c664228cbfe5ddd9bade53e..4a35e87947472611779f29be1dca96b2e0e9170f 100644 --- a/docs/_includes/js/overview.html +++ b/docs/_includes/js/overview.html @@ -68,6 +68,12 @@ $.fn.bootstrapBtn = bootstrapButton // give $().bootstrapBtn the Boot $('#myModal').on('show.bs.modal', function (e) { if (!data) return e.preventDefault() // stops modal from being shown }) +{% endhighlight %} + + <h3 id="js-version-nums">Version numbers</h3> + The version of each of Bootstrap's jQuery plugins can be accessed via the <code>VERSION</code> property of the plugin's constructor. For example, for the tooltip plugin: +{% highlight js %} +$.fn.tooltip.Constructor.VERSION // => "{{ site.current_version }}" {% endhighlight %} <h3 id="js-disabled">No special fallbacks when JavaScript is disabled</h3> diff --git a/docs/_includes/nav/javascript.html b/docs/_includes/nav/javascript.html index 76e6732f8d68e71a1b0945193f83504b01c5e2eb..eba53771b0e91d1ab3af2ea02703fa0ea93a9ba7 100644 --- a/docs/_includes/nav/javascript.html +++ b/docs/_includes/nav/javascript.html @@ -6,6 +6,7 @@ <li><a href="#js-programmatic-api">Programmatic API</a></li> <li><a href="#js-noconflict">No conflict</a></li> <li><a href="#js-events">Events</a></li> + <li><a href="#js-version-nums">Version numbers</a></li> <li><a href="#js-disabled">When JavaScript is disabled</a></li> <li><a href="#callout-third-party-libs">Third-party libraries</a></li> </ul>