Skip to content

Commit

Permalink
Fixes #6823: add some docs notes about tooltips in input groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Feb 7, 2013
1 parent c8874ff commit e3f3542
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
, fixTitle: function () {
var $e = this.$element
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@
, fixTitle: function () {
var $e = this.$element
if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') {
$e.attr('data-original-title', $e.attr('title') || '').removeAttr('title')
$e.attr('data-original-title', $e.attr('title') || '').attr('title', '')
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/bootstrap.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,9 @@ <h3>Four directions</h3>
</div>


<h3>Tooltips in input groups</h3>
<p>When using tooltips and popovers with the Bootstrap input groups, you'll have to set the <code>container</code> (documented below) option to avoid unwanted side effects.</p>

<hr class="bs-docs-separator">


Expand Down
3 changes: 3 additions & 0 deletions docs/templates/pages/javascript.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
</div>{{! /example }}


<h3>{{_i}}Tooltips in input groups{{/i}}</h3>
<p>{{_i}}When using tooltips and popovers with the Bootstrap input groups, you'll have to set the <code>container</code> (documented below) option to avoid unwanted side effects.{{/i}}</p>

<hr class="bs-docs-separator">


Expand Down

0 comments on commit e3f3542

Please sign in to comment.