svn commit: r781661 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js

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

svn commit: r781661 - /ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js

ashish-18
Author: ashish
Date: Thu Jun  4 06:49:12 2009
New Revision: 781661

URL: http://svn.apache.org/viewvc?rev=781661&view=rev
Log:
Applied fix from jira issue OFBIZ-2562 (On changing the order status from order view page, the changeOrderStatus request throws twice and gives error on console.)

Thanks Rishi for your contribution.

Modified:
    ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js

Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js?rev=781661&r1=781660&r2=781661&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js Thu Jun  4 06:49:12 2009
@@ -94,7 +94,11 @@
 //Generic function for fetching country's associated state list.
 function getAssociatedStateList(countryId, stateId, errorId, divId) {
     var optionList = [];
-    new Ajax.Request("getAssociatedStateList", {
+    var requestToSend = "getAssociatedStateList";
+    if ($('orderViewed')) {
+        requestToSend = "/ordermgr/control/getAssociatedStateList"
+    }
+    new Ajax.Request(requestToSend, {
         asynchronous: false,
         parameters: {countryGeoId:$F(countryId)},
         onSuccess: function(transport) {