From 01238a49dbdb1aaf6be45979afbba4ca3057b7ad Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 23 Apr 2013 21:10:15 -0400 Subject: [PATCH] select parentway(s) after dragging node fixes #1368 --- js/id/modes/drag_node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/id/modes/drag_node.js b/js/id/modes/drag_node.js index 64d2541fd..b41a05a70 100644 --- a/js/id/modes/drag_node.js +++ b/js/id/modes/drag_node.js @@ -136,7 +136,9 @@ iD.modes.DragNode = function(context) { moveAnnotation(entity)); } - context.enter(iD.modes.Browse(context)); + var parentWays = _.pluck(context.graph().parentWays(entity), 'id'); + + context.enter(iD.modes.Select(context, parentWays)); } function cancel() {