// Fix attr('checked'), attr('disabled') and attr('selected') with jquery update #PSCFV-2142

This commit is contained in:
rMalie
2012-05-02 08:29:30 +00:00
parent faea9caafb
commit d0b4e96ab3
17 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -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();
+1 -1
View File
@@ -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');
});