// Fix attr('checked'), attr('disabled') and attr('selected') with jquery update #PSCFV-2142
This commit is contained in:
@@ -184,11 +184,11 @@ var ajaxCart = {
|
||||
//disabled the button when adding to do not double add if user double click
|
||||
if (addedFromProductPage)
|
||||
{
|
||||
$('body#product p#add_to_cart input').attr('disabled', 'disabled').removeClass('exclusive').addClass('exclusive_disabled');
|
||||
$('body#product p#add_to_cart input').attr('disabled', true).removeClass('exclusive').addClass('exclusive_disabled');
|
||||
$('.filled').removeClass('filled');
|
||||
}
|
||||
else
|
||||
$(callerElement).attr('disabled', 'disabled');
|
||||
$(callerElement).attr('disabled', true);
|
||||
|
||||
if ($('#cart_block #cart_block_list').hasClass('collapsed'))
|
||||
this.expand();
|
||||
|
||||
@@ -412,7 +412,7 @@ function reloadContent(params_plus)
|
||||
val = $('#pagination #nb_item').val();
|
||||
$('#pagination #nb_item').children().each(function(it, option) {
|
||||
if (option.value == val)
|
||||
$(option).attr('selected', 'selected');
|
||||
$(option).attr('selected', true);
|
||||
else
|
||||
$(option).removeAttr('selected');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user