From 02e1dc0cd0b6b71dae4cfba49dc75f09a744f579 Mon Sep 17 00:00:00 2001 From: Sascha Rodekamp Date: Fri, 18 Mar 2011 13:37:29 +0000 Subject: [PATCH] Update - Update the jQuery library to version 1.5.1. A few changes were necessary for this step. I updated the jQuery flot library to the current release, because the old one doesn't work with the new jQuery version, i also updated the jsTree Plugin to make it work with the new jQuery Version. Note in jQuery 1.5 the implementation of the ajax function has been changed. For more Information have a look at: http://blog.jquery.com/2011/01/31/jquery-15-released/ git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1082916 13f79535-47bb-0310-9956-ffa450edef68 --- ecommerce/webapp/ecommerce/blog/main.ftl | 2 +- ecommerce/webapp/ecommerce/images/checkoutProcess.js | 7 ------- ecommerce/widget/CommonScreens.xml | 4 ++-- .../webapp/googlecheckout/redirect/redirectHeader.ftl | 2 +- ofbizwebsite/template/HtmlHead.ftl | 2 +- webpos/widget/CommonScreens.xml | 2 +- 6 files changed, 6 insertions(+), 13 deletions(-) diff --git a/ecommerce/webapp/ecommerce/blog/main.ftl b/ecommerce/webapp/ecommerce/blog/main.ftl index 106abd23d..3cffb9f56 100644 --- a/ecommerce/webapp/ecommerce/blog/main.ftl +++ b/ecommerce/webapp/ecommerce/blog/main.ftl @@ -21,7 +21,7 @@ under the License. Main - + diff --git a/ecommerce/webapp/ecommerce/images/checkoutProcess.js b/ecommerce/webapp/ecommerce/images/checkoutProcess.js index 6089db5d8..cdb811b32 100644 --- a/ecommerce/webapp/ecommerce/images/checkoutProcess.js +++ b/ecommerce/webapp/ecommerce/images/checkoutProcess.js @@ -254,7 +254,6 @@ function createUpdateCustomerAndShippingAddress() { jQuery.ajax({ url: 'createUpdateShippingAddress', type: 'POST', - dataType: 'json', async: false, data: jQuery('#shippingForm').serialize(), success: function(json) { @@ -288,7 +287,6 @@ function getShipOptions() { jQuery.ajax({ url: 'getShipOptions', type: 'POST', - dataType: 'json', async: false, success: function(json) { jQuery('#shippingFormServerError').fadeOut('fast'); @@ -327,7 +325,6 @@ function setShippingOption() { jQuery.ajax({ url: 'setShippingOption', type: 'POST', - dataType: 'json', async: false, data: jQuery('#shippingOptionForm').serialize(), success: function(json) { @@ -374,7 +371,6 @@ function processBillingAndPayment() { jQuery.ajax({ url: 'createUpdateBillingAndPayment', type: 'POST', - dataType: 'json', data: jQuery('#billingForm').serialize(), async: false, success: function(json) { @@ -432,7 +428,6 @@ function addPromoCode() { jQuery.ajax({ url: 'silentAddPromoCode', type: 'POST', - dataType: 'json', data: {"productPromoCodeId" : jQuery('#productPromoCode').val()}, success: function(json) { jQuery('#cartFormServerError').fadeOut('fast'); @@ -454,7 +449,6 @@ function getProductLineItemIndex(event, productId) { jQuery.ajax({ url: 'getShoppingCartItemIndex', type: 'POST', - dataType: 'json', async: false, data: formValues, success: function(json) { @@ -495,7 +489,6 @@ function updateCartData(elementId, formValues, itemQty, itemIndex) { jQuery.ajax({ url: 'cartItemQtyUpdate', type: 'POST', - dataType: 'json', data: formValues, success: function(json) { if (json.totalQuantity == 0) { diff --git a/ecommerce/widget/CommonScreens.xml b/ecommerce/widget/CommonScreens.xml index f60c49417..b2187ce5d 100644 --- a/ecommerce/widget/CommonScreens.xml +++ b/ecommerce/widget/CommonScreens.xml @@ -42,7 +42,7 @@ under the License. - + + diff --git a/webpos/widget/CommonScreens.xml b/webpos/widget/CommonScreens.xml index bccf301dc..1c0512106 100644 --- a/webpos/widget/CommonScreens.xml +++ b/webpos/widget/CommonScreens.xml @@ -49,7 +49,7 @@ under the License. - +