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
This commit is contained in:
Ashish Vijaywargiya
2009-06-04 06:49:12 +00:00
parent c5ce98937e
commit fe5d54cb30
@@ -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) {