Created by: Yohn
This adds a container option to the tooltip that can be called via html5 - data-container="body"
or javascript - $().tooltip({container: 'body'})
if no container is given then it will get the default insertAfter()
strategy
This fixes a number of bugs that were introduced when we changed the appendTo()
to insertAfter()
If the tooltips are within a modal, and are inheriting its parents styles, then use $().tooltip({container: '#modalID'})
thanks to @WilliamStam and @blakeembrey for helping with this solution
some issues that noticed this bug #5687 (closed) #6254 (closed) #6314 (closed) #6283 (closed) #6275 (closed) #6250 (closed) #6240 (closed) #6236 (closed) along with a lot more..
this is another resubmit of this.. previous pull request - #6321 with some tweaks to work with the 2.3 branch.