diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/_includes/js/overview.html | 6 | ||||
| -rw-r--r-- | docs/_includes/nav/javascript.html | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/docs/_includes/js/overview.html b/docs/_includes/js/overview.html index b95bb6c5f..4a35e8794 100644 --- a/docs/_includes/js/overview.html +++ b/docs/_includes/js/overview.html @@ -70,6 +70,12 @@ $('#myModal').on('show.bs.modal', function (e) { }) {% 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> <p>Bootstrap's plugins don't fall back particularly gracefully when JavaScript is disabled. If you care about the user experience in this case, use <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript"><code><noscript></code></a> to explain the situation (and how to re-enable JavaScript) to your users, and/or add your own custom fallbacks.</p> diff --git a/docs/_includes/nav/javascript.html b/docs/_includes/nav/javascript.html index 76e6732f8..eba53771b 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> |
