Author: ashish
Date: Thu Jun 4 06:49:12 2009
New Revision: 781661
URL:
http://svn.apache.org/viewvc?rev=781661&view=revLog:
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) {