diff --git a/js/navigation.js b/js/navigation.js index 7f3480b18c..e8f934c92e 100644 --- a/js/navigation.js +++ b/js/navigation.js @@ -1229,13 +1229,23 @@ function PMA_showFullName($containerELem) { $('body').append('
'); $('#full_name_layer').mouseleave(function() { /** mouseleave */ - $(this).addClass('hide'); + $(this).addClass('hide') + .removeClass('hovering'); + }).mouseenter(function() { + /** mouseenter */ + $(this).addClass('hovering'); }); $fullNameLayer = $('#full_name_layer'); } $fullNameLayer.removeClass('hide'); $fullNameLayer.css({left: thisOffset.left, top: thisOffset.top}); $fullNameLayer.html($this.clone()); + setTimeout(function() { + if(! $fullNameLayer.hasClass('hovering')) + { + $fullNameLayer.trigger('mouseleave'); + } + }, 200); } }); }