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.

diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index aedd21f53..111de2350 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -847,7 +847,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}Using bootstrap-alerts.js{{/i}}

{{_i}}Enable dismissal of an alert via javascript:{{/i}}

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

{{_i}}Markup{{/i}}

{{_i}}Just add data-dismiss="alert" to your close button to automatically give an alert close functionality.{{/i}}

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

{{_i}}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.{{/i}}

.alert('close')

{{_i}}Closes an alert.{{/i}}

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

{{_i}}Events{{/i}}

{{_i}}Bootstrap's alert class exposes a few events for hooking into alert functionality.{{/i}}