[*] B0 : change the tooltip (CC014)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8499 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-09-12 13:21:48 +00:00
parent a318f6e081
commit 90724761b0
2 changed files with 12 additions and 4 deletions
+11 -2
View File
@@ -402,8 +402,17 @@ if (helpboxes)
{
if ($('input'))
{
$('input').focus(function() { $(this).parent().find('.hint:first').css('display', 'block'); });
$('input').blur(function() { $(this).parent().find('.hint:first').css('display', 'none'); });
//Display by rollover
$('input').mouseover(function() { $(this).parent().find('.hint:first').css('display', 'block'); });
$('input').mouseout(function() { $(this).parent().find('.hint:first').css('display', 'none'); });
//display when you press the tab key
$('input').keydown(function (e) {
if ( e.keyCode === 9 ){
$('input').focus(function() { $(this).parent().find('.hint:first').css('display', 'block'); });
$('input').blur(function() { $(this).parent().find('.hint:first').css('display', 'none'); });
}
});
}
});
}