mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
Don't open tooltip after DrawWay
(as we'll be going straight into tag editor)
This commit is contained in:
@@ -24,7 +24,7 @@ declare("iD.controller.edit.EditBaseState", [iD.controller.ControllerState], {
|
||||
},
|
||||
|
||||
closeEditorTooltip:function() {
|
||||
dijit.popup.close(editortooltip);
|
||||
if (this.editortooltip) { dijit.popup.close(editortooltip); }
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
@@ -19,7 +19,7 @@ declare("iD.controller.edit.SelectedWay", [iD.controller.edit.EditBaseState], {
|
||||
this.wayUI=this.controller.map.getUI(this.way);
|
||||
this.wayUI.setStateClass('selected');
|
||||
this.wayUI.setStateClass('shownodes');
|
||||
this.openEditorTooltip(this.entryevent.clientX, this.entryevent.clientY);
|
||||
if (this.entryevent) { this.openEditorTooltip(this.entryevent.clientX, this.entryevent.clientY); }
|
||||
this.wayUI.redraw();
|
||||
},
|
||||
exitState:function() {
|
||||
|
||||
@@ -94,12 +94,12 @@ declare("iD.controller.shape.DrawWay", [iD.controller.ControllerState], {
|
||||
if (entity==this.getDrawingNode()) {
|
||||
// Double-click, so complete drawing
|
||||
this.controller.stepper.highlight('tag');
|
||||
return new iD.controller.edit.SelectedWay(this.way, event);
|
||||
return new iD.controller.edit.SelectedWay(this.way, null);
|
||||
} else if (entity==this.getStartNode()) {
|
||||
// Start of this way, so complete drawing
|
||||
this.appendNode(entity, this.undoAdder() );
|
||||
this.controller.stepper.highlight('tag');
|
||||
return new iD.controller.edit.SelectedWay(this.way, event);
|
||||
return new iD.controller.edit.SelectedWay(this.way, null);
|
||||
} else {
|
||||
// Add to way
|
||||
this.appendNode(entity, this.undoAdder() );
|
||||
|
||||
Reference in New Issue
Block a user