Commit 4c6104ac authored by Paul Brown's avatar Paul Brown

Merge pull request #1102 from ngr/master

Fix #1101 form.js addInlineField for new nested elements
parents d8b960da 36d4b33b
...@@ -484,7 +484,10 @@ ...@@ -484,7 +484,10 @@
var $parentForm = $el.parent().closest('.inline-field'); var $parentForm = $el.parent().closest('.inline-field');
if ($parentForm.hasClass('fresh')) { if ($parentForm.hasClass('fresh')) {
id = $parentForm.attr('id') + '-' + elID; id = $parentForm.attr('id');
if (elID) {
id += '-' + elID;
}
} }
var $fieldList = $el.find('> .inline-field-list'); var $fieldList = $el.find('> .inline-field-list');
......
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