Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Ruscoe <kevdotbadger@gmail.com>2017-10-19 05:49:32 +0300
committerMark Otto <markd.otto@gmail.com>2017-10-19 05:49:32 +0300
commit1154032f0a09a5a1d62a3869ff856e4cac3f1f51 (patch)
treebc06b311844c19877993c317a4bce0a19a04c346 /docs
parentd94fec94b239c29c62ce7d7470d69539cf009a13 (diff)
Update alerts.md (#24420)
This document contains the word JavaScript everywhere apart from in one place where it's abbreviated to JS. This just makes sure it's written as JavaScript consistently across the page.
Diffstat (limited to 'docs')
-rw-r--r--docs/4.0/components/alerts.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/4.0/components/alerts.md b/docs/4.0/components/alerts.md
index 4fdaed41b2..aa6dfbeccb 100644
--- a/docs/4.0/components/alerts.md
+++ b/docs/4.0/components/alerts.md
@@ -50,7 +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/{{ site.docs_version }}/getting-started/javascript/#util). The compiled version includes this.
+- If you're building our JavaScript from source, it [requires `util.js`]({{ site.baseurl }}/docs/{{ site.docs_version }}/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 `<button>` element with it for proper behavior across all devices.
- To animate alerts when dismissing them, be sure to add the `.fade` and `.show` classes.