Skip to content

Commit

Permalink
Merge pull request #946 from WhaleWatching/nav_hover_show_full
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
lem9 committed Feb 18, 2014
2 parents 3befe77 + 8ba06fc commit 519e659
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion js/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1229,13 +1229,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);
}
});
}

0 comments on commit 519e659

Please sign in to comment.