Fix dialogue text for new notes

It was showing "Editing note #xx" and so on for all new notes past the first initial new note.
This commit is contained in:
BrokenEagle
2020-02-14 20:24:27 +00:00
parent 44f32a1e5e
commit 115355ab7b

View File

@@ -601,7 +601,7 @@ let Note = {
}
let $dialog = $('<div></div>');
let note_title = (id === 'x' ? 'Creating new note' : 'Editing note #' + id);
let note_title = (typeof id === 'string' && id.startsWith('x') ? 'Creating new note' : 'Editing note #' + id);
$dialog.append('<span><b>' + note_title + ' (<a href="/wiki_pages/help:notes">view help</a>)</b></span>');
$dialog.append($textarea);
$dialog.data("id", id);