svn commit: r830199 - in /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce: images/checkoutProcess.js order/OnePageCheckoutProcess.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r830199 - in /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce: images/checkoutProcess.js order/OnePageCheckoutProcess.ftl

ashish-18
Author: ashish
Date: Tue Oct 27 14:24:47 2009
New Revision: 830199

URL: http://svn.apache.org/viewvc?rev=830199&view=rev
Log:
Applied patch from jira issue OFBIZ-3095 - Getting error "Number Format Exception" on OnePageCheckout.
Thanks Surya & Rishi for the contribution.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js?rev=830199&r1=830198&r2=830199&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js Tue Oct 27 14:24:47 2009
@@ -391,7 +391,10 @@
     var removeLinks = cartForm.getElementsByTagName('a');
     var links = $A(removeLinks);
     links.each( function(e) {
-        Event.observe(e, 'click', removeItem);
+        var removeLink = e.id;
+        if (removeLink.startsWith('removeItemLink_')) {
+            Event.observe(e, 'click', removeItem);
+        }
     });
     if ($('initializedCompletedCartDiscount') != undefined && $('initializedCompletedCartDiscount').value == 0) {
         $('completedCartDiscountRow').hide();

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl?rev=830199&r1=830198&r2=830199&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/order/OnePageCheckoutProcess.ftl Tue Oct 27 14:24:47 2009
@@ -170,7 +170,7 @@
                           </#if>
                           <td headers="editItemTotal" id="displayItem_${cartLine_index}"><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency() /></td>
                           <#if !cartLine.getIsPromo()>
-                            <td><a href="javascript:void(0);"><img id="remove_${cartLine_index}" src="<@ofbizContentUrl>/ecommerce/images/remove.png</@ofbizContentUrl>" alt="Remove Item Image" /></a></td>
+                            <td><a id="removeItemLink_${cartLine_index}" href="javascript:void(0);"><img id="remove_${cartLine_index}" src="<@ofbizContentUrl>/ecommerce/images/remove.png</@ofbizContentUrl>" alt="Remove Item Image" /></a></td>
                           </#if>
                         </tr>
                       </#list>