mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 13:18:15 +02:00
WIP: update service calls; todo: note update event handling
This commit is contained in:
@@ -11,6 +11,8 @@ import {
|
||||
behaviorSelect
|
||||
} from '../behavior';
|
||||
|
||||
import { svgNotes } from '../svg';
|
||||
|
||||
import { services } from '../services';
|
||||
import { modeBrowse } from './browse';
|
||||
import { uiNoteEditor } from '../ui';
|
||||
@@ -24,7 +26,16 @@ export function modeSelectNote(context, selectedNoteID) {
|
||||
|
||||
var osm = services.osm;
|
||||
var keybinding = d3_keybinding('select-note');
|
||||
var noteEditor = uiNoteEditor(context);
|
||||
var noteEditor = uiNoteEditor(context)
|
||||
.on('updateNote', function() {
|
||||
|
||||
// .call(drawNotes); // TODO: update and redraw notes
|
||||
|
||||
var note = checkSelectedID();
|
||||
if (!note) return;
|
||||
context.ui().sidebar
|
||||
.show(noteEditor.note(note));
|
||||
});
|
||||
var behaviors = [
|
||||
behaviorHover(context),
|
||||
behaviorSelect(context),
|
||||
|
||||
Reference in New Issue
Block a user