You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2010/09/29 19:44:14 UTC
svn commit: r1002784 -
/ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js
Author: jleroux
Date: Wed Sep 29 17:44:14 2010
New Revision: 1002784
URL: http://svn.apache.org/viewvc?rev=1002784&view=rev
Log:
Fixes syntax issues (tested this time!)
Modified:
ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js
Modified: ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js
URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js?rev=1002784&r1=1002783&r2=1002784&view=diff
==============================================================================
--- ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js (original)
+++ ofbiz/branches/jquery/framework/images/webapp/images/getDependentDropdownValues.js Wed Sep 29 17:44:14 2010
@@ -87,14 +87,14 @@ function getDependentDropdownValues(requ
//*** calls any service already mounted as an event
function getServiceResult(request, params) {
- data = [];
- jQuery.each(params, function (key, value) { data.add({ name: key, value: value}) });
- return jQuery.getJSON(request, data, function(result) { return result } )
+ var data;
+ jQuery.post(request, params, function(result) { data = result }, 'json' );
+ return data;
}
//*** checkUomConversion returns true if an UomConversion exists
function checkUomConversion(request, params) {
- data = getServiceResult(request, params);
- return data['exist'];
+ data = getServiceResult(request, params);
+ return data['exist'];
}