[*] Project : Jquery 1.7.2

This commit is contained in:
fBrignoli
2012-04-20 15:45:43 +00:00
parent 5ad963ae19
commit d5c0d7a80d
20 changed files with 106 additions and 265 deletions
+2 -2
View File
@@ -683,7 +683,7 @@ function updateHookShoppingCartExtra(html)
function refreshDeliveryOptions()
{
$.each($('.delivery_option_radio'), function() {
if ($(this).attr('checked'))
if ($(this).prop('checked'))
{
if ($(this).parent().find('.delivery_option_carrier.not-displayable').length == 0)
$(this).parent().find('.delivery_option_carrier').show();
@@ -713,7 +713,7 @@ $(document).ready(function() {
async: true,
cache: false,
data: 'controller=cart&ajax=true&allowSeperatedPackage&value='
+($(this).attr('checked') ? '1' : '0')
+($(this).prop('checked') ? '1' : '0')
+'&token='+static_token
+'&allow_refresh=1',
success: function(jsonData)
+2 -2
View File
@@ -131,7 +131,7 @@ function updateCarrierSelectionAndGift()
var delivery_option_radio = $('.delivery_option_radio');
var delivery_option_params = '&';
$.each(delivery_option_radio, function(i) {
if ($(this).attr('checked'))
if ($(this).prop('checked'))
delivery_option_params += $(delivery_option_radio[i]).attr('name') + '=' + $(delivery_option_radio[i]).val() + '&';
});
if (delivery_option_params == '&')
@@ -674,7 +674,7 @@ function bindInputs()
function multishippingMode(it)
{
if ($(it).attr('checked'))
if ($(it).prop('checked'))
{
$('#address_delivery, .address_delivery').hide();
$('#address_invoice').removeClass('alternate_item').addClass('item');
+1 -1
View File
@@ -227,7 +227,7 @@ function resizeAddressesBox(nameBox)
$(document).ready(function() {
$.fn.checkboxChange = function(fnChecked, fnUnchecked) {
if ($(this).attr('checked') && fnChecked)
if ($(this).prop('checked') && fnChecked)
fnChecked.call(this);
else if(fnUnchecked)
fnUnchecked.call(this);