upgrade wtform

This commit is contained in:
TuxCoder 2022-06-17 09:25:14 +02:00
parent 8287b01e40
commit 4105974fe0
4 changed files with 13 additions and 13 deletions

View file

@ -44,8 +44,8 @@ window.fieldlist = {
var template = templateTag.content.cloneNode(true);
var id = templateTag.dataset['fieldlistNextId']++;
for(let tag of template.querySelectorAll('[name], [id]')){
tag.name = tag.name.replace(/^custom-/, name+'-'+id+'-')
tag.id = tag.id.replace(/^custom-/, name+'-'+id+'-')
tag.name = tag.name.replace(/^custom/, `${name}-${id}`)
tag.id = tag.id.replace(/^custom/, `${name}-${id}`)
};
templateTag.parentNode.querySelector('ul').appendChild(template);