From db3dcb7c66457ca4ff2531c339e55c63dc52d576 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 10 Aug 2017 22:38:45 -0700 Subject: [PATCH] Mention util.js on all JS plugin pages (#22955) Fixes #20660 --- docs/4.0/components/alerts.md | 1 + docs/4.0/components/carousel.md | 2 ++ docs/4.0/components/dropdowns.md | 2 ++ docs/4.0/components/navs.md | 2 ++ docs/4.0/components/popovers.md | 1 + docs/4.0/components/scrollspy.md | 1 + docs/4.0/components/tooltips.md | 3 ++- 7 files changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/4.0/components/alerts.md b/docs/4.0/components/alerts.md index ed63da9525..a6a6616d8a 100644 --- a/docs/4.0/components/alerts.md +++ b/docs/4.0/components/alerts.md @@ -50,6 +50,7 @@ Alerts can also contain additional HTML elements like headings, paragraphs and d Using the alert JavaScript plugin, it's possible to dismiss any alert inline. Here's how: - Be sure you've loaded the alert plugin, or the compiled Bootstrap JavaScript. +- If you're building our JS from source, it [requires `util.js`]({{ site.baseurl }}/docs/getting-started/javascript/#util). The compiled version includes this. - Add a dismiss button and the `.alert-dismissible` class, which adds extra padding to the right of the alert and positions the `.close` button. - On the dismiss button, add the `data-dismiss="alert"` attribute, which triggers the JavaScript functionality. Be sure to use the `