From d594d6377a7e9cda399c25a450b0d27df704d939 Mon Sep 17 00:00:00 2001 From: Yohn Date: Sun, 23 Dec 2012 04:18:16 -0500 Subject: [PATCH] adding container option to tooltips --- js/bootstrap-tooltip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: '' }