From: Chris Rebert Date: Sat, 27 Sep 2014 01:33:07 +0000 (-0700) Subject: Port JS Alert fixes over to hosted docs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5b90440fab072d6e694daf132fb6b569c5fb89b;p=thirdparty%2Fbootstrap.git Port JS Alert fixes over to hosted docs --- diff --git a/javascript/index.html b/javascript/index.html index 227515b8a3..9fcee22607 100644 --- a/javascript/index.html +++ b/javascript/index.html @@ -1497,11 +1497,10 @@

Methods

$().alert()

-

Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the .fade and .in class already applied to them.

+

Makes an alert listen for click events on descendant elements which have the data-dismiss="alert" attribute. (Not necessary when using the data-api's auto-initialization.)

-

.alert('close')

-

Closes an alert.

-
$(".alert").alert('close')
+

$().alert('close')

+

Closes an alert by removing it from the DOM. If the .fade and .in classes are present on the element, the alert will fade out before it is removed.

Events