generic confirmationDialog for all files

This commit is contained in:
Azgaar 2021-05-16 18:51:34 +03:00 committed by Peter
parent 556e651d52
commit 4bf901e849
20 changed files with 863 additions and 836 deletions

View file

@ -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));
}