[*] 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
+1 -2
View File
@@ -749,8 +749,7 @@ tr.deleted td {
/* help boxes */
.hint {
display: none;
position: relative;
left: 0px;
position: absolute;
margin-top: 4px;
margin-bottom: 2px;
border: 1px solid #50B0EC;
+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'); });
}
});
}
});
}