diff --git a/dist/locales/en.json b/dist/locales/en.json index d25af4491..1a99cfc49 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -755,7 +755,8 @@ "newComment": "New Comment", "inputPlaceholder": "Enter a comment to share with other users.", "comment": "Comment", - "commentResolve": "Comment & Resolve", + "commentClose": "Comment & Resolve", + "commentReopen": "Comment & Reopen", "save": "Save comment", "cancel": "Cancel" }, diff --git a/modules/ui/note_editor.js b/modules/ui/note_editor.js index 6038a421a..7e9b4a6d5 100644 --- a/modules/ui/note_editor.js +++ b/modules/ui/note_editor.js @@ -23,6 +23,7 @@ export function uiNoteEditor(context) { var _inputValue; var _newComment; var _note; + var _modified; function localeDateString(s) { if (!s) return null; @@ -93,7 +94,7 @@ export function uiNoteEditor(context) { function addNoteComment(parseResults) { if (!_note || !_note.status || !context.selectedNoteID) return; - services.osm..addNoteComment(_note, _inputValue, parseResults); + services.osm.addNoteComment(_note, _inputValue, parseResults); } @@ -332,10 +333,10 @@ export function uiNoteEditor(context) { .merge(buttonEnter); buttonSection.selectAll('.close-button') - .on('click', function() { save(toggleNoteStatus) }); + .on('click', function() { save(toggleNoteStatus); }); buttonSection.selectAll('.reopen-button') - .on('click', function() { save(toggleNoteStatus) }); + .on('click', function() { save(toggleNoteStatus); }); buttonSection.selectAll('.cancel-button') .on('click.cancel', cancel);