From: Yohn Date: Sun, 23 Dec 2012 12:04:24 +0000 (-0500) Subject: data-toggle instead of rel for tooltip and popover X-Git-Tag: v2.3.0^2~63^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6380%2Fhead;p=thirdparty%2Fbootstrap.git data-toggle instead of rel for tooltip and popover --- diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 809e34ce9c..dee6bb0f93 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -699,17 +699,17 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

{{_i}}Inspired by the excellent jQuery.tipsy plugin written by Jason Frame; Tooltips are an updated version, which don't rely on images, use CSS3 for animations, and data-attributes for local title storage.{{/i}}

{{_i}}Hover over the links below to see tooltips:{{/i}}

-

{{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}} +

{{_i}}Tight pants next level keffiyeh you probably haven't heard of them. Photo booth beard raw denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie sustainable quinoa 8-bit american apparel have a terry richardson vinyl chambray. Beard stumptown, cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's cleanse vegan chambray. A really ironic artisan whatever keytar, scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral.{{/i}}

{{! /example }}

{{_i}}Four directions{{/i}}

{{! /example }} @@ -788,7 +788,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

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

{{_i}}For performance reasons, the Tooltip and Popover data-apis are opt in. If you would like to use them just specify a selector option.{{/i}}

-
<a href="#" rel="tooltip" title="{{_i}}first tooltip{{/i}}">{{_i}}hover over me{{/i}}</a>
+
<a href="#" data-toggle="tooltip" title="{{_i}}first tooltip{{/i}}">{{_i}}hover over me{{/i}}</a>

{{_i}}Methods{{/i}}

$().tooltip({{_i}}options{{/i}})

@@ -860,16 +860,16 @@ $('a[data-toggle="tab"]').on('shown', function (e) {

Live demo

- {{_i}}Click to toggle popover{{/i}} + {{_i}}Click to toggle popover{{/i}}

{{_i}}Four directions{{/i}}

{{! /example }}