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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14989 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-05-02 08:29:30 +00:00
parent 30925cb59e
commit 327d7f42ec
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');
});