From 906028abdb394284b89cfb669deacd6a4f044709 Mon Sep 17 00:00:00 2001 From: Hendy Tanata Date: Thu, 2 Feb 2012 20:45:06 -0800 Subject: Fix alerts JavaScript code example. --- docs/javascript.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index db6948392..68848f2d7 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -923,7 +923,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Using bootstrap-alerts.js

Enable dismissal of an alert via javascript:

-
$(".alert-message").alert()
+
$(".alert").alert()

Markup

Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.

<a class="close" data-dismiss="alert" href="#">&times;</a>
@@ -932,7 +932,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

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.

.alert('close')

Closes an alert.

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

Events

Bootstrap's alert class exposes a few events for hooking into alert functionality.

-- cgit v1.2.3 From 7f0a64106dee57c49777481715c28011f842437d Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Thu, 2 Feb 2012 23:31:03 -0800 Subject: its core (typo) --- docs/javascript.html | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 68848f2d7..2cfe2b9b7 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1460,21 +1460,6 @@ $('.myCarousel').carousel({ - - -- cgit v1.2.3