mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-22 22:14:44 -04:00
Tooltips shouldn't stay visible after clicking
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
define(
|
||||
[
|
||||
'jquery'
|
||||
], function ($) {
|
||||
return {
|
||||
|
||||
appInitializer: function () {
|
||||
console.log('starting signalR');
|
||||
|
||||
$('body').tooltip({
|
||||
selector: '[title]',
|
||||
container: 'body'
|
||||
});
|
||||
|
||||
$(document).click(function(e) {
|
||||
|
||||
if ($(e.target).attr('title') !== undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('.tooltip').remove();
|
||||
});
|
||||
|
||||
return this;
|
||||
}
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user