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 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
<tuple>
<global name="DTMLMethod" module="OFS.DTMLMethod"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
......@@ -56,7 +59,7 @@ Note: this JavaScript is used to make parallel list field more user friendly\n
$(function() {\n
\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
var select_element = $(event.target)\n
var add_element = true;\n
......@@ -83,7 +86,8 @@ $(function() {\n
}\n
});\n
\n
});
});\n
]]></string> </value>
</item>
......
6
\ No newline at end of file
8
\ 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