From 457885075f8fa004f3a190efdcf381af218e1bb7 Mon Sep 17 00:00:00 2001 From: Steven Black Date: Wed, 25 Feb 2015 04:00:37 +0200 Subject: [PATCH] Javascript docs: Accessibility and cosmetic changes to headings. Closes #15915 by merging it. --- docs/_includes/js/alerts.html | 4 ++-- docs/_includes/js/buttons.html | 8 ++++---- docs/_includes/js/carousel.html | 12 ++++++------ docs/_includes/js/collapse.html | 8 ++++---- docs/_includes/js/dropdowns.html | 2 +- docs/_includes/js/modal.html | 8 ++++---- docs/_includes/js/popovers.html | 10 +++++----- docs/_includes/js/scrollspy.html | 2 +- docs/_includes/js/tabs.html | 2 +- docs/_includes/js/tooltips.html | 10 +++++----- docs/assets/css/src/docs.css | 7 +++++++ 11 files changed, 40 insertions(+), 33 deletions(-) diff --git a/docs/_includes/js/alerts.html b/docs/_includes/js/alerts.html index 7f3bf99c2e..711fd6c40c 100644 --- a/docs/_includes/js/alerts.html +++ b/docs/_includes/js/alerts.html @@ -36,10 +36,10 @@

Methods

-

$().alert()

+

$().alert()

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')

+

$().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.

diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html index 83bf0bfaae..827906cd88 100644 --- a/docs/_includes/js/buttons.html +++ b/docs/_includes/js/buttons.html @@ -115,15 +115,15 @@ {% endhighlight %}

Methods

- -

$().button('toggle')

+

$().button('toggle')

Toggles push state. Gives the button the appearance that it has been activated.

-

$().button('reset')

+

$().button('reset')

Resets button state - swaps text to original text.

-

$().button(string)

+

$().button(string)

Swaps text to any data defined text state.

+ {% highlight html %}