Fix extensible_parallel_list_field selector so the event tha duplicates fields...

Fix extensible_parallel_list_field selector so the event tha duplicates fields only fires for the actual element providing the extensible_parallel_list_field CSS class, instead of it also being fired for siblings that didn't implement that class but which were under the same "input" CSS class.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41449 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4722ff7
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="DTMLMethod" module="OFS.DTMLMethod"/> <global name="DTMLMethod" module="OFS.DTMLMethod"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -56,7 +59,7 @@ Note: this JavaScript is used to make parallel list field more user friendly\n ...@@ -56,7 +59,7 @@ Note: this JavaScript is used to make parallel list field more user friendly\n
$(function() {\n $(function() {\n
\n \n
// Make the parallel list field adding more elements automatically.\n // Make the parallel list field adding more elements automatically.\n
$(\'.input:has(.extensible_parallel_list_field)\').change(function(event) {\n $(\'.input .extensible_parallel_list_field\').change(function(event) {\n
event.preventDefault();\n event.preventDefault();\n
var select_element = $(event.target)\n var select_element = $(event.target)\n
var add_element = true;\n var add_element = true;\n
...@@ -83,7 +86,8 @@ $(function() {\n ...@@ -83,7 +86,8 @@ $(function() {\n
}\n }\n
});\n });\n
\n \n
}); });\n
]]></string> </value> ]]></string> </value>
</item> </item>
......
6 8
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment