From c460c03da5d0e79d7fced4bf4f9088016ef7fd32 Mon Sep 17 00:00:00 2001 From: Thomas Hervey Date: Mon, 9 Jul 2018 10:11:50 -0400 Subject: [PATCH] fixed typo --- dist/locales/en.json | 3 ++- modules/ui/note_editor.js | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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);