Update stepper

This commit is contained in:
Richard Fairhurst
2012-07-11 15:50:08 +01:00
parent 6ecbde6ef1
commit 553c605adb
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -15,6 +15,10 @@ declare("iD.controller.edit.NoSelection", [iD.controller.ControllerState], {
constructor:function() {
},
enterState:function() {
this.controller.stepper.hide();
},
processMouseEvent:function(event,entityUI) {
this.inherited(arguments);
if (!entityUI) { return this; }
+2
View File
@@ -92,10 +92,12 @@ declare("iD.controller.shape.DrawWay", [iD.controller.ControllerState], {
// Click on node
if (entity==this.getDrawingNode()) {
// Double-click, so complete drawing
this.controller.stepper.highlight(3);
return new iD.controller.edit.SelectedWay(this.way);
} else if (entity==this.getStartNode()) {
// Start of this way, so complete drawing
this.appendNode(entity, this.undoAdder() );
this.controller.stepper.highlight(3);
return new iD.controller.edit.SelectedWay(this.way);
} else {
// Add to way