aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorHeinrich Fenkart <[email protected]>2014-08-06 01:59:13 +0200
committerHeinrich Fenkart <[email protected]>2014-08-06 02:42:03 +0200
commitddadb2cf659745e6261912fdf64f3c00c0a8b400 (patch)
treedf59ef96b726f90cde05ba5f294c219ed12a450b /docs/_includes
parent9096c2002123a6dafdf0c3d9df5d069c968d738e (diff)
downloadbootstrap-ddadb2cf659745e6261912fdf64f3c00c0a8b400.tar.xz
bootstrap-ddadb2cf659745e6261912fdf64f3c00c0a8b400.zip
Document that alerts are removed from the DOM when closed; fixes #14318
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/js/alerts.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/_includes/js/alerts.html b/docs/_includes/js/alerts.html
index 2f6b33368..9b29b4c2a 100644
--- a/docs/_includes/js/alerts.html
+++ b/docs/_includes/js/alerts.html
@@ -23,7 +23,7 @@
<h2 id="alerts-usage">Usage</h2>
- <p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality.</p>
+ <p>Just add <code>data-dismiss="alert"</code> to your close button to automatically give an alert close functionality. Closing an alert removes it from the DOM.</p>
{% highlight html %}
<button type="button" class="close" data-dismiss="alert">
@@ -32,7 +32,7 @@
</button>
{% endhighlight %}
- <p>To have your alerts use animation when closing, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.</p>
+ <p>To have your alerts use animation when closing, make sure they have the <code>.fade</code> and <code>.in</code> classes already applied to them.</p>
<h3>Methods</h3>
@@ -40,7 +40,7 @@
<p>Makes an alert listen for click events on descendant elements which have the <code>data-dismiss="alert"</code> attribute. (Not necessary when using the data-api's auto-initialization.)</p>
<h4>$().alert('close')</h4>
- <p>Closes an alert.</p>
+ <p>Closes an alert by removing it from the DOM. If the <code>.fade</code> and <code>.in</code> classes are present on the element, the alert will fade out before it is removed.</p>
<h3>Events</h3>