[-] BO : Merge of https://github.com/smilesrg/PrestaShop/commit/b7b79ff4614e5be7891f8702acdc46c8303a2fdd
This commit is contained in:
1 parent
841f6ec65d
commit
69c99f49c9
1 file changed
+16
-18
+16
-18
@@ -363,39 +363,37 @@ if (typeof helpboxes != 'undefined' && helpboxes)
|
|||||||
if ($('input'))
|
if ($('input'))
|
||||||
{
|
{
|
||||||
//Display by rollover
|
//Display by rollover
|
||||||
$('input').mouseover(function() {
|
$('input').focusin(function(){$(this).parent().find('.hint:first').css('display', 'block');});
|
||||||
$(this).parent().find('.hint:first').css('display', 'block');
|
$('input').focusout(function(){$(this).parent().find('.hint:first').css('display', 'none');});
|
||||||
});
|
|
||||||
$('input').mouseout(function() { $(this).parent().find('.hint:first').css('display', 'none'); });
|
|
||||||
|
|
||||||
//display when you press the tab key
|
//display when you press the tab key
|
||||||
$('input').keydown(function (e) {
|
$('input').keydown(function(e){
|
||||||
if ( e.keyCode === 9 ){
|
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'); });
|
$('input').focus(function() {$(this).parent().find('.hint:first').css('display', 'block');});
|
||||||
|
$('input').blur(function() {$(this).parent().find('.hint:first').css('display', 'none');});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ($('select'))
|
if ($('select'))
|
||||||
{
|
{
|
||||||
//Display by rollover
|
//Display by rollover
|
||||||
$('select').mouseover(function() {
|
$('select').focusin(function(){$(this).parent().find('.hint:first').css('display', 'block');});
|
||||||
$(this).parent().find('.hint:first').css('display', 'block');
|
$('select').focusout(function(){$(this).parent().find('.hint:first').css('display', 'none');});
|
||||||
});
|
|
||||||
$('select').mouseout(function() { $(this).parent().find('.hint:first').css('display', 'none'); });
|
|
||||||
|
|
||||||
//display when you press the tab key
|
//display when you press the tab key
|
||||||
$('select').keydown(function (e) {
|
$('select').keydown(function (e){
|
||||||
if ( e.keyCode === 9 ){
|
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'); });
|
$('select').focus(function(){$(this).parent().find('.hint:first').css('display', 'block');});
|
||||||
|
$('select').blur(function(){$(this).parent().find('.hint:first').css('display', 'none');});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if ($('span.title_box'))
|
if ($('span.title_box'))
|
||||||
{
|
{
|
||||||
//Display by rollover
|
//Display by rollover
|
||||||
$('span.title_box').mouseover(function() {
|
$('span.title_box').focusin(function() {
|
||||||
//get reference to the hint box
|
//get reference to the hint box
|
||||||
var parent = $(this).parent();
|
var parent = $(this).parent();
|
||||||
var box = parent.find('.hint:first');
|
var box = parent.find('.hint:first');
|
||||||
@@ -419,7 +417,7 @@ if (typeof helpboxes != 'undefined' && helpboxes)
|
|||||||
box.css('display', 'block');
|
box.css('display', 'block');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$('span.title_box').mouseout(function() { $(this).parent().find('.hint:first').css('display', 'none'); });
|
$('span.title_box').focusout(function(){$(this).parent().find('.hint:first').css('display', 'none');});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user