Skip to content

Commit f5b9044

Browse files
committed
Port JS Alert fixes over to hosted docs
1 parent 5545572 commit f5b9044

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

javascript/index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,11 +1497,10 @@ <h3>Markup</h3>
14971497
<h3>Methods</h3>
14981498

14991499
<h4>$().alert()</h4>
1500-
<p>Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.</p>
1500+
<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>
15011501

1502-
<h4>.alert('close')</h4>
1503-
<p>Closes an alert.</p>
1504-
<div class="highlight"><pre><code class="js"><span class="nx">$</span><span class="p">(</span><span class="s2">&quot;.alert&quot;</span><span class="p">).</span><span class="nx">alert</span><span class="p">(</span><span class="s1">&#39;close&#39;</span><span class="p">)</span></code></pre></div>
1502+
<h4>$().alert('close')</h4>
1503+
<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>
15051504

15061505

15071506
<h3>Events</h3>

0 commit comments

Comments
 (0)