mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
feat: burg group editor - form
This commit is contained in:
parent
32808605b3
commit
d8009f84ad
8 changed files with 156 additions and 53 deletions
|
|
@ -414,7 +414,7 @@ function overviewMilitary() {
|
|||
|
||||
function applyMilitaryOptions() {
|
||||
const unitLines = Array.from(tableBody.querySelectorAll("tr"));
|
||||
const names = unitLines.map(r => r.querySelector("input").value.replace(/[&\/\\#, +()$~%.'":*?<>{}]/g, "_"));
|
||||
const names = unitLines.map(r => sanitizeId(r.querySelector("input").value));
|
||||
if (new Set(names).size !== names.length) return tip("All units should have unique names", false, "error");
|
||||
|
||||
$("#militaryOptions").dialog("close");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue