diff options
| author | Yohn <[email protected]> | 2012-12-23 04:18:16 -0500 |
|---|---|---|
| committer | Yohn <[email protected]> | 2012-12-23 04:18:16 -0500 |
| commit | d594d6377a7e9cda399c25a450b0d27df704d939 (patch) | |
| tree | a75e5b66f623697046b86a1ea08281d47a111372 | |
| parent | 48211ad9f572504cdfa00273a66d701e62ec291d (diff) | |
| download | bootstrap-d594d6377a7e9cda399c25a450b0d27df704d939.tar.xz bootstrap-d594d6377a7e9cda399c25a450b0d27df704d939.zip | |
adding container option to tooltips
| -rw-r--r-- | js/bootstrap-tooltip.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index d908b0cf8..82fa96078 100644 --- a/js/bootstrap-tooltip.js +++ b/js/bootstrap-tooltip.js @@ -126,7 +126,8 @@ $tip .detach() .css({ top: 0, left: 0, display: 'block' }) - .insertAfter(this.$element) + + this.options.container && $tip.appendTo(this.options.container).length || $tip.insertAfter(this.$element) pos = this.getPosition() @@ -279,6 +280,7 @@ , title: '' , delay: 0 , html: false + , container: '' } |
