From fe5d54cb30fa281b120bbfee2a5c024cd8bed5d4 Mon Sep 17 00:00:00 2001 From: Ashish Vijaywargiya Date: Thu, 4 Jun 2009 06:49:12 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@781661 13f79535-47bb-0310-9956-ffa450edef68 --- ecommerce/webapp/ecommerce/images/geoAutoCompleter.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js b/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js index ca285dca5..4c631a7c5 100644 --- a/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js +++ b/ecommerce/webapp/ecommerce/images/geoAutoCompleter.js @@ -94,7 +94,11 @@ function setKeyAsParameter(text, li) { //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) {