WIP drag note

This commit is contained in:
Thomas Hervey
2018-07-20 21:41:44 -04:00
parent 2cde7843f2
commit bf9b19359a
14 changed files with 315 additions and 20 deletions
+5 -1
View File
@@ -40,7 +40,11 @@ export function uiNoteEditor(context) {
headerEnter
.append('button')
.attr('class', 'fr note-editor-close')
.on('click', function() { context.enter(modeBrowse(context)); })
.on('click', function() {
var osm = services.osm;
if (_note.isNew()) { osm.removeNote(_note); } // delete new note
context.enter(modeBrowse(context));
})
.call(svgIcon('#iD-icon-close'));
headerEnter