1
0
mirror of https://github.com/dani/vroom.git synced 2024-07-01 07:42:56 +02:00

Only trigger tooltip on hover

Not on focus
This commit is contained in:
Daniel Berteaud 2015-01-22 22:20:08 +01:00
parent 222f77d5ff
commit e94b6cd955

View File

@ -8,7 +8,7 @@ Daniel Berteaud <daniel@firewall-services.com>
// Default notifications // Default notifications
$.notify.defaults( { globalPosition: 'bottom left' } ); $.notify.defaults( { globalPosition: 'bottom left' } );
// Enable tooltip on required elements // Enable tooltip on required elements
$('.help').tooltip({container: 'body'}); $('.help').tooltip({container: 'body', trigger: 'hover'});
$('.modal').on('show.bs.modal', function(){ $('.modal').on('show.bs.modal', function(){
$('.help').tooltip('hide'); $('.help').tooltip('hide');
}); });