form tooltips pop from right.

pull/2/head
kay.one 12 years ago
parent 94807ac00b
commit 7d7cdfa148

@ -4,6 +4,13 @@ define(
'bootstrap' 'bootstrap'
], function () { ], function () {
$(document).on('mouseenter', '[title]', 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');
}); });
}); });

Loading…
Cancel
Save