[OFBiz] SVN: r5914 - trunk/framework/images/webapp/images
jonesde at svn.ofbiz.org
jonesde at svn.ofbiz.org
Wed Oct 5 00:21:19 EDT 2005
Author: jonesde
Date: 2005-10-04 23:21:15 -0500 (Tue, 04 Oct 2005)
New Revision: 5914
Modified:
trunk/framework/images/webapp/images/fieldlookup.js
Log:
Applied patch from Al Byers to fix lookup popup issue when the calling form had multiple lookup fields, reported by Andrey Filippov
Modified: trunk/framework/images/webapp/images/fieldlookup.js
===================================================================
--- trunk/framework/images/webapp/images/fieldlookup.js 2005-10-04 18:55:00 UTC (rev 5913)
+++ trunk/framework/images/webapp/images/fieldlookup.js 2005-10-05 04:21:15 UTC (rev 5914)
@@ -1,6 +1,9 @@
// ================= FIELD LOOKUP METHODS ============================
+var target = null;
+var target2 = null;
+
function call_fieldlookup(target, viewName, formName,viewWidth,viewheight) {
var fieldLookup = new fieldLookup1(target);
if (! viewWidth) viewWidth = 250;
@@ -27,11 +30,12 @@
return lookup_error("Error calling the field lookup: no target control specified");
if (obj_target.value == null)
return cal_error("Error calling the field lookup: parameter specified is not valid tardet control");
- this.target = obj_target;
+ //this.target = obj_target;
+ target = obj_target;
// register in global collections
- this.id = lookups.length;
- lookups[this.id] = this;
+ //this.id = lookups.length;
+ //lookups[this.id] = this;
}
function fieldLookup2(obj_target, obj_target2) {
// passing methods
@@ -43,18 +47,18 @@
return lookup_error("Error calling the field lookup: no target control specified");
if (obj_target.value == null)
return cal_error("Error calling the field lookup: parameter specified is not valid tardet control");
- this.target = obj_target;
+ target = obj_target;
// validate input parameters
if (!obj_target2)
return lookup_error("Error calling the field lookup: no target control specified");
if (obj_target2.value == null)
return cal_error("Error calling the field lookup: parameter specified is not valid tardet control");
- this.target2 = obj_target2;
+ target2 = obj_target2;
// register in global collections
- this.id = lookups.length;
- lookups[this.id] = this;
+ //this.id = lookups.length;
+ //lookups[this.id] = this;
}
function lookup_popup1 (view_name, form_name, viewWidth, viewheight) {
More information about the Svn
mailing list