From d588a80b4a54895a43a9f43885ffd0d90e00584d Mon Sep 17 00:00:00 2001 From: dSevere Date: Mon, 17 Oct 2011 09:34:36 +0000 Subject: [PATCH] // CSS: padding modification for correct display of stock tab git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9380 b9a71923-0436-4b27-9f14-aed3839534dd --- js/admin.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/js/admin.js b/js/admin.js index 6a3a8f622..3e98004fd 100644 --- a/js/admin.js +++ b/js/admin.js @@ -415,6 +415,22 @@ if (helpboxes) $('input').blur(function() { $(this).parent().find('.hint:first').css('display', 'none'); }); } }); + } + if ($('select')) + { + //Display by rollover + $('select').mouseover(function() { + $(this).parent().find('.hint:first').css('display', 'block'); + }); + $('select').mouseout(function() { $(this).parent().find('.hint:first').css('display', 'none'); }); + + //display when you press the tab key + $('select').keydown(function (e) { + if ( e.keyCode === 9 ){ + $('select').focus(function() { $(this).parent().find('.hint:first').css('display', 'block'); }); + $('select').blur(function() { $(this).parent().find('.hint:first').css('display', 'none'); }); + } + }); } }); }