We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8fbad8 commit f710fc1Copy full SHA for f710fc1
app/assets/javascripts/cocoon.js
@@ -67,7 +67,7 @@
67
if (typeof pnew_id == "string" || typeof pnew_id == "number") {
68
new_content = content.replace(regexp_inputid,
69
'$& value="' + pnew_id + '" ');
70
- new_content = content.replace(regexp_inputid2,
+ new_content = new_content.replace(regexp_inputid2,
71
72
new_id = pnew_id;
73
} else {
@@ -78,7 +78,7 @@
78
new_id = pnew_id[assoc]
79
80
'$& value="' + new_id + '" ');
81
82
83
for (var i in pnew_id) {
84
if (i != assoc) {
0 commit comments