sonarr-repo-only/UI/jQuery/TooltipBinder.js

17 lines
396 B
JavaScript
Raw Normal View History

2013-06-22 06:24:24 +00:00
'use strict';
define(
[
'bootstrap'
], function () {
$(document).on('mouseenter', '[title]', function () {
2013-07-14 06:06:18 +00:00
var element = $(this);
if (!element.attr('data-placement') && element.parents('.control-group').length > 0) {
element.attr('data-placement', 'right');
}
element.tooltip('show');
});
});