From d7e3bf722d784b167b665e8bacb749f18ae0d0f4 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Tue, 4 Oct 2011 21:24:59 -0700 Subject: add selector option to alerts, update modal settings strategy --- docs/javascript.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index 2a81b3307..2891c4460 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -195,7 +195,6 @@ $('#my-modal').bind('hidden', function () { - @@ -659,6 +658,26 @@ $('#.tabs').bind('change', function (e) {
$(".alert-message").alert()

Markup

Just add a data-alert attribute to your alert messages to automatically give them close functionality.

+

Options

+ + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
selectorstring'.close'What selector to target for closing an alert.
+

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.

-- cgit v1.2.3