mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
generic confirmationDialog for all files
This commit is contained in:
parent
f27547129a
commit
276364cddc
20 changed files with 898 additions and 853 deletions
|
|
@ -21,10 +21,10 @@ function editNotes(id, name) {
|
|||
// select an object
|
||||
if (notes.length || id) {
|
||||
if (!id) id = notes[0].id;
|
||||
let note = notes.find(note => note.id === id);
|
||||
let note = notes.find((note) => note.id === id);
|
||||
if (note === undefined) {
|
||||
if (!name) name = id;
|
||||
note = {id, name, legend: ""};
|
||||
note = {id, name, legend: ''};
|
||||
notes.push(note);
|
||||
notesSelect.options.add(new Option(id, id));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue