When cursor pass <code>#full_name_layer</code> with a high speed, <code>#full_name_layer</code> will resides in page
Now it'll disappear.

Signed-off-by: Edward Cheng <c4150221@gmail.com>
This commit is contained in:
Edward Cheng 2014-02-18 09:01:59 +08:00
parent bd863f6a62
commit 8ba06fc545

View File

@ -1223,13 +1223,23 @@ function PMA_showFullName($containerELem) {
$('body').append('<div id="full_name_layer" class="hide"></div>');
$('#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);
}
});
}