Author: jleroux
Date: Fri Dec 2 05:37:17 2011
New Revision: 1209362
URL:
http://svn.apache.org/viewvc?rev=1209362&view=revLog:
A patch from Leon
https://issues.apache.org/jira/browse/OFBIZ-4598 "set ACTIVATED_LOOKUP to null if there's no other lookup dialog open"
Set ACTIVATED_LOOKUP to null in lookup dialog "close" function when there's no other lookup dialog open, in case of some kind of wrong behavior during the opening process of a new lookup dialog.
Modified:
ofbiz/trunk/framework/images/webapp/images/fieldlookup.js
Modified: ofbiz/trunk/framework/images/webapp/images/fieldlookup.js
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/fieldlookup.js?rev=1209362&r1=1209361&r2=1209362&view=diff==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/fieldlookup.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/fieldlookup.js Fri Dec 2 05:37:17 2011
@@ -255,7 +255,7 @@ function ConstructLookup(requestUrl, inp
var requestUrlAndArgs = requestUrl;
if (typeof args == "object" && jQuery.isArray(args)) {
for (var i = 0; i < args.length; i++) {
- requestUrlAndArgs += "&parm" + i + "=" + jQuery(args[i]).val();
+ requestUrlAndArgs += "&parm" + i + "=" + jQuery(args[i]).val();
}
}
jQuery("#" + lookupId).load(requestUrlAndArgs, function(data){
@@ -286,6 +286,8 @@ function ConstructLookup(requestUrl, inp
}
if (prevLookup) {
identifyLookup(prevLookup);
+ } else {
+ ACTIVATED_LOOKUP = null;
}
}