[-] FO : Fix versatile jQuery selector
`:hidden` selects form elements with `type="hidden"` but also : elements with `display:none`, elements with their width/height equal to zero and which the ancestor element is hidden. `input[type=hidden]` is more appropriate for those reasons.
This commit is contained in:
@@ -730,7 +730,7 @@ function checkUrl()
|
||||
$('#color_' + attributesCombinations[a]['id_attribute']).addClass('selected');
|
||||
$('#color_' + attributesCombinations[a]['id_attribute']).parent().addClass('selected');
|
||||
$('input:radio[value=' + attributesCombinations[a]['id_attribute'] + ']').attr('checked', true);
|
||||
$('input:hidden[name=group_' + attributesCombinations[a]['id_attribute_group'] + ']').val(attributesCombinations[a]['id_attribute']);
|
||||
$('input[type=hidden][name=group_' + attributesCombinations[a]['id_attribute_group'] + ']').val(attributesCombinations[a]['id_attribute']);
|
||||
$('select[name=group_' + attributesCombinations[a]['id_attribute_group'] + ']').val(attributesCombinations[a]['id_attribute']);
|
||||
}
|
||||
// find combination
|
||||
|
||||
Reference in New Issue
Block a user