From a1c8dec437b756a9d569d89c258c8e529eec0c11 Mon Sep 17 00:00:00 2001 From: aFolletete Date: Fri, 4 Nov 2011 10:43:56 +0000 Subject: [PATCH] // fixed misstyping on length attribute git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9880 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/template/orders/form.tpl | 62 +++++++++++------------ 1 file changed, 31 insertions(+), 31 deletions(-) diff --git a/admin-dev/themes/template/orders/form.tpl b/admin-dev/themes/template/orders/form.tpl index 2c20b75d3..cb3d871d8 100755 --- a/admin-dev/themes/template/orders/form.tpl +++ b/admin-dev/themes/template/orders/form.tpl @@ -71,9 +71,9 @@ if ($('#old_carts_orders:visible').length == 0) { $(this).html(txt_hide_carts); - $('#old_carts_orders').slideDown('slow'); + $('#old_carts_orders').slideDown('slow'); } - else + else { $(this).html(txt_show_carts); $('#old_carts_orders').slideUp('slow'); @@ -144,11 +144,11 @@ } }); }); - {if $cart->id} + {if $cart->id} setupCustomer('{$cart->id_customer}'); useCart('{$cart->id}'); {/if} - + $('.delete_product').live('click', function(e) { e.preventDefault(); var to_delete = $(this).attr('rel').split('_'); @@ -198,7 +198,7 @@ });*/ resetBind(); }); - + function resetBind() { $('.fancybox').fancybox(); @@ -206,7 +206,7 @@ onClosed: useCart(id_cart) });*/ } - + function updateProductPrice(id_product, id_product_attribute, new_price) { $.ajax({ @@ -230,7 +230,7 @@ } }); } - + function displayQtyInStock(id) { if (id == 'id_product') @@ -238,7 +238,7 @@ else $('#qty_in_stock').html($('#ipa_'+$('#id_product option:selected').val()+' option:selected').attr('rel')); } - + function duplicateOrder(id_order) { $.ajax({ @@ -261,7 +261,7 @@ } }); } - + function useCart(id_new_cart) { id_cart = id_new_cart; @@ -285,7 +285,7 @@ } }); } - + function deleteVoucher(id_cart_rule) { $.ajax({ @@ -307,7 +307,7 @@ } }); } - + function deleteProduct(id_product, id_product_attribute) { $.ajax({ @@ -330,7 +330,7 @@ } }); } - + function searchCustomers() { $.ajax({ @@ -363,7 +363,7 @@ } }); } - + function setupCustomer(idCustomer) { $('#products_part').show(); @@ -429,7 +429,7 @@ } }); } - + function updateCarrierList(carriers) { var html = ''; @@ -438,7 +438,7 @@ }); $('#id_carrier').html(html); } - + function searchProducts() { $('#products_part').show(); @@ -467,7 +467,7 @@ products_found += ''; $.each(this.combinations, function() { attributes_html += ''; @@ -490,7 +490,7 @@ } }); } - + function displayProductAttributes() { if ($('#ipa_'+$('#id_product option:selected').val()+' option').length === 0) @@ -502,7 +502,7 @@ $('#ipa_'+$('#id_product option:selected').val()).show(); } } - + function updateCartProducts(products) { var cart_content = ''; @@ -516,7 +516,7 @@ }); $('#customer_cart tbody').html(cart_content); } - + function updateCartVouchers(vouchers) { var vouchers_html = ''; @@ -529,25 +529,25 @@ } else $('#voucher_list').hide(); - + $('#voucher_list tbody').html(vouchers_html); } - + function updateCartPaymentList(payment_list) { $('#payment_list').html(payment_list); } - + function displaySummary(jsonSummary) { updateCartProducts(jsonSummary.summary.products); updateCartVouchers(jsonSummary.summary.discounts); - - if (jsonSummary.summary.products.length == 0 || !jsonSummary.addresses.lenght == 0) + + if (jsonSummary.summary.products.length == 0 || !jsonSummary.addresses.length == 0) $('#carriers_part,#summary_part').hide(); else $('#carriers_part,#summary_part').show(); - + updateCarrierList(jsonSummary.carriers); if (jsonSummary.cart.gift == 1) @@ -580,7 +580,7 @@ $('#go_order_process').attr('href', jsonSummary.link_order); resetBind(); } - + function updateQty(id_product, id_product_attribute, qty) { $.ajax({ @@ -672,7 +672,7 @@ { displaySummary(res); } - }); + }); } function updateCarrier() @@ -729,9 +729,9 @@ $('#send_email_feedback').removeClass('error').addClass('conf'); $('#send_email_feedback').html(res.result); } - }); + }); } - + function updateAddresses() { $.ajax({ @@ -756,7 +756,7 @@ $('#send_email_feedback').removeClass('error').addClass('conf'); $('#send_email_feedback').html(res.result); } - }); + }); }
{l s='Customer'} @@ -900,7 +900,7 @@
- +

{l s='Add new address'}