From f5b90440fab072d6e694daf132fb6b569c5fb89b Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Fri, 26 Sep 2014 18:33:07 -0700 Subject: [PATCH] Port JS Alert fixes over to hosted docs --- javascript/index.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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

-- 2.47.2