From 5832c576a0ad6e4951330fc05f7b6d8caec3bf4d Mon Sep 17 00:00:00 2001 From: Gregory Roussac Date: Tue, 29 Jan 2013 10:56:28 +0100 Subject: [PATCH] [-] FO : 'undefined' is undefined =) --- themes/default/js/order-opc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/default/js/order-opc.js b/themes/default/js/order-opc.js index a994f2eca..71ebb9863 100644 --- a/themes/default/js/order-opc.js +++ b/themes/default/js/order-opc.js @@ -305,9 +305,9 @@ function saveAddress(type) params += 'phone='+encodeURIComponent($('#phone'+(type === 'invoice' ? '_invoice' : '')).val())+'&'; params += 'phone_mobile='+encodeURIComponent($('#phone_mobile'+(type === 'invoice' ? '_invoice' : '')).val())+'&'; params += 'alias='+encodeURIComponent($('#alias'+(type === 'invoice' ? '_invoice' : '')).val())+'&'; - if (type === 'delivery' && $('#opc_id_address_delivery').val() != 'undefined' && parseInt($('#opc_id_address_delivery').val()) > 0) + if (type === 'delivery' && $('#opc_id_address_delivery').val() != undefined && parseInt($('#opc_id_address_delivery').val()) > 0) params += 'opc_id_address_delivery='+encodeURIComponent($('#opc_id_address_delivery').val())+'&'; - if (type === 'invoice' && $('#opc_id_address_invoice').val() != 'undefined' && parseInt($('#opc_id_address_invoice').val()) > 0) + if (type === 'invoice' && $('#opc_id_address_invoice').val() != undefined && parseInt($('#opc_id_address_invoice').val()) > 0) params += 'opc_id_address_invoice='+encodeURIComponent($('#opc_id_address_invoice').val())+'&'; // Clean the last & params = params.substr(0, params.length-1);