You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2010/02/12 01:20:20 UTC

svn commit: r909186 - /ofbiz/trunk/framework/images/webapp/images/fieldlookup.js

Author: jaz
Date: Fri Feb 12 00:20:19 2010
New Revision: 909186

URL: http://svn.apache.org/viewvc?rev=909186&view=rev
Log:
fix to call onchange events when the fieldlookup sets a field's value; same as in lookup.ftl

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=909186&r1=909185&r2=909186&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/fieldlookup.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/fieldlookup.js Fri Feb 12 00:20:19 2010
@@ -774,6 +774,9 @@
     if (! obj_caller) return;
     setSourceColor(obj_caller.target);
     obj_caller.target.value = value;
+    if (obj_caller.target.onchange != null) {    
+       obj_caller.target.onchange();                       
+   }
     closeLookup();
 }
 // function passing selected value to calling window
@@ -783,6 +786,9 @@
     if (obj_caller.target2 == null) return;
     setSourceColor(obj_caller.target2);
     obj_caller.target2.value = value2;
+    if (obj_caller.target2.onchange != null) {     
+        obj_caller.target2.onchange();                    
+    }
 }
 function set_multivalues(value) {
     obj_caller.target.value = value;