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/10/10 12:02:32 UTC

svn commit: r1006266 - /ofbiz/branches/jquery/framework/common/webcommon/includes/setMultipleSelectJs.ftl

Author: jleroux
Date: Sun Oct 10 10:02:32 2010
New Revision: 1006266

URL: http://svn.apache.org/viewvc?rev=1006266&view=rev
Log:
Needs an action when changing multiple select values and hitting submit.

Modified:
    ofbiz/branches/jquery/framework/common/webcommon/includes/setMultipleSelectJs.ftl

Modified: ofbiz/branches/jquery/framework/common/webcommon/includes/setMultipleSelectJs.ftl
URL: http://svn.apache.org/viewvc/ofbiz/branches/jquery/framework/common/webcommon/includes/setMultipleSelectJs.ftl?rev=1006266&r1=1006265&r2=1006266&view=diff
==============================================================================
--- ofbiz/branches/jquery/framework/common/webcommon/includes/setMultipleSelectJs.ftl (original)
+++ ofbiz/branches/jquery/framework/common/webcommon/includes/setMultipleSelectJs.ftl Sun Oct 10 10:02:32 2010
@@ -41,11 +41,12 @@ jQuery(document).ready(function() {
     jQuery("#${asm_relatedField}").one('focus', function() {
       selectMultipleRelatedValues('${asm_requestName}', '${asm_paramKey}', '${asm_relatedField}', '${asm_multipleSelect}', '${asm_type}', typeValue, '${asm_responseName}');
     });
-    jQuery("#${asm_relatedField}").bind('change', function() {
+    jQuery("#${asm_relatedField}").change(function() {
       selectMultipleRelatedValues('${asm_requestName}', '${asm_paramKey}', '${asm_relatedField}', '${asm_multipleSelect}', '${asm_type}', typeValue, '${asm_responseName}');
     });
   </#if>
-  });
+    selectMultipleRelatedValues('${asm_requestName}', '${asm_paramKey}', '${asm_relatedField}', '${asm_multipleSelect}', '${asm_type}', typeValue, '${asm_responseName}');
+  });  
 </script>
 
 <style type="text/css">