From 9b50c9b3a1e34d84590ae4b1a5b2fe1e68b2f9e1 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 --- 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'); }); + } + }); } }); }