This commit is contained in:
trinkey 2024-03-31 18:04:05 -04:00
parent cae6b18cb0
commit 589a432ca2

View file

@ -140,7 +140,7 @@ fetch("/api/account/self", {
i = 0; i = 0;
for (const flag of (json.flags || [])) { for (const flag of (json.flags || [])) {
inner += `<div id="social-${i}" data-id="${i}">${flagInput.split("</select")[0].replaceAll("%i", i).replace(`value="${flag}"`, `selected value="${flag}"`)}</select><svg onclick="dom('social-${i}').remove()">${icons.x}</svg></div>`; inner += `<div id="flags-${i}" data-id="${i}">${flagInput.split("</select")[0].replaceAll("%i", i).replace(`value="${flag}"`, `selected value="${flag}"`)}</select><svg onclick="dom('flags-${i}').remove()">${icons.x}</svg></div>`;
i++; i++;
} }
inner += `</div><button onclick="add_input('flags', '${flagInput.replaceAll("\"", "&quot;").replaceAll("\'", "\\\'")}');">Add</button></div></div>` inner += `</div><button onclick="add_input('flags', '${flagInput.replaceAll("\"", "&quot;").replaceAll("\'", "\\\'")}');">Add</button></div></div>`