Author: mor
Date: Wed Jul 16 05:59:11 2008 New Revision: 677273 URL: http://svn.apache.org/viewvc?rev=677273&view=rev Log: One Page Checkout - Formatting changes for previous commit. No functional changes. Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js?rev=677273&r1=677272&r2=677273&view=diff ============================================================================== --- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js (original) +++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/images/checkoutProcess.js Wed Jul 16 05:59:11 2008 @@ -234,7 +234,7 @@ onSuccess: function(transport) { var data = transport.responseText.evalJSON(true); var serverError = getServerError(data); - if(serverError != "") { + if (serverError != "") { Effect.Appear('shippingFormServerError'); $('shippingFormServerError').update(serverError); isShipStepValidate = false; @@ -256,26 +256,26 @@ var shipOptions = null; var optionList = []; if ($F('shipMethod') == "" || $F('shipMethod') == null) { - new Ajax.Request('/ecommerce/control/getShipOptions', { - asynchronous: false, - onSuccess: function(transport) { - var data = transport.responseText.evalJSON(true); - var serverError = getServerError(data); - if(serverError != "") { - Effect.Appear('shippingFormServerError'); - $('shippingFormServerError').update(serverError); - isShipStepValidate = false; - } else { - Effect.Fade('shippingFormServerError'); - isShipStepValidate = true; - shipOptions = data.shippingOptions; - shipOptions.each( function(shipOption) { - optionList.push("<option value = " + shipOption.shippingMethod + " > " + shipOption.shippingDesc + " </option>"); - }); - $('shipMethod').update(optionList); - } - }, requestHeaders: {Accept: 'application/json'} - }); + new Ajax.Request('/ecommerce/control/getShipOptions', { + asynchronous: false, + onSuccess: function(transport) { + var data = transport.responseText.evalJSON(true); + var serverError = getServerError(data); + if (serverError != "") { + Effect.Appear('shippingFormServerError'); + $('shippingFormServerError').update(serverError); + isShipStepValidate = false; + } else { + Effect.Fade('shippingFormServerError'); + isShipStepValidate = true; + shipOptions = data.shippingOptions; + shipOptions.each( function(shipOption) { + optionList.push("<option value = " + shipOption.shippingMethod + " > " + shipOption.shippingDesc + " </option>"); + }); + $('shipMethod').update(optionList); + } + }, requestHeaders: {Accept: 'application/json'} + }); } } |
Free forum by Nabble | Edit this page |