Hi Andrew,

I try to understand how and when this is helpful. In other words why did you 
add this? Could you please give an example?
This question because I wonder if I should use it in the jQuery branch.

Thanks

Jacques

From: <[email protected]>
Author: jaz
Date: Fri Nov  5 16:13:00 2010
New Revision: 1031655

URL: http://svn.apache.org/viewvc?rev=1031655&view=rev
Log:
small change to call the onchange event when updating the autocomplete fields 
after the description is set

Modified:
   ofbiz/trunk/framework/images/webapp/images/selectall.js

Modified: ofbiz/trunk/framework/images/webapp/images/selectall.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/selectall.js?rev=1031655&r1=1031654&r2=1031655&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/selectall.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/selectall.js Fri Nov  5 16:13:00 
2010
@@ -410,6 +410,12 @@ function setLookDescription(textFieldId,
        tooltipElement.update(description);
        lookupWrapperEl.appendChild(tooltipElement);
    }
+
+    // after the description is set; the text field may have been updated
+    // just in case, call onchange again
+    if ($(textFieldId).onchange != null) {
+    $(textFieldId).onchange();
+    }
}

/** Enable auto-completion for drop-down elements.




Reply via email to