]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
adding container option to tooltips
authorYohn <john.skem9@gmail.com>
Sun, 23 Dec 2012 09:18:16 +0000 (04:18 -0500)
committerYohn <john.skem9@gmail.com>
Sun, 23 Dec 2012 09:18:16 +0000 (04:18 -0500)
js/bootstrap-tooltip.js

index d908b0cf81384a0e110cf364c4234ba02eb1706b..82fa96078956a5b88542cfb5fdf1d697aa1642bb 100644 (file)
         $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()
 
   , title: ''
   , delay: 0
   , html: false
+  , container: ''
   }