From: Yohn Date: Sun, 23 Dec 2012 09:18:16 +0000 (-0500) Subject: adding container option to tooltips X-Git-Tag: v2.3.0^2~63^2^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d594d6377a7e9cda399c25a450b0d27df704d939;p=thirdparty%2Fbootstrap.git adding container option to tooltips --- diff --git a/js/bootstrap-tooltip.js b/js/bootstrap-tooltip.js index d908b0cf81..82fa960789 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: '' }