prefix input ids in massinput response
This commit is contained in:
parent
f37cecf8c2
commit
d06bfe07d0
@ -125,6 +125,7 @@
|
||||
function processResponse(response) {
|
||||
element.innerHTML = response;
|
||||
|
||||
prefixInputIds();
|
||||
reset()
|
||||
|
||||
if (UtilRegistry) {
|
||||
@ -132,6 +133,16 @@
|
||||
}
|
||||
}
|
||||
|
||||
function prefixInputIds() {
|
||||
var idAttrs = ['id', 'for', 'data-conditional-input'];
|
||||
idAttrs.forEach(function(attr) {
|
||||
Array.from(element.querySelectorAll('[' + attr + ']')).forEach(function(input) {
|
||||
var value = element.id + '__' + input.getAttribute(attr);
|
||||
input.setAttribute(attr, value);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function serializeForm(submitButton, enctype) {
|
||||
var formData = new FormData(massInputForm);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user