From 7d7cdfa1487b972a4f5801930ac9e52cc31cf534 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sat, 13 Jul 2013 23:06:18 -0700 Subject: [PATCH] form tooltips pop from right. --- UI/jQuery/TooltipBinder.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/UI/jQuery/TooltipBinder.js b/UI/jQuery/TooltipBinder.js index 18eb4d73e..fc6f983e4 100644 --- a/UI/jQuery/TooltipBinder.js +++ b/UI/jQuery/TooltipBinder.js @@ -4,6 +4,13 @@ define( 'bootstrap' ], function () { $(document).on('mouseenter', '[title]', function () { - $(this).tooltip('show'); + + var element = $(this); + + if (!element.attr('data-placement') && element.parents('.control-group').length > 0) { + element.attr('data-placement', 'right'); + } + + element.tooltip('show'); }); });