Commit e07cf46d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Select mode moved to the last position in the context menu

parent c31ff231
...@@ -39,9 +39,6 @@ MapContextMenu.prototype._createMapContextMenuGui = function() { ...@@ -39,9 +39,6 @@ MapContextMenu.prototype._createMapContextMenuGui = function() {
self.addOption("Add comment", function() { self.addOption("Add comment", function() {
return self.getMap().openCommentDialog(); return self.getMap().openCommentDialog();
}); });
self.addOption("Select mode", function() {
return self.getMap().toggleDrawing();
});
}; };
/** /**
...@@ -55,6 +52,9 @@ MapContextMenu.prototype.init = function() { ...@@ -55,6 +52,9 @@ MapContextMenu.prototype.init = function() {
return self.createExportAsModelSubmenu(); return self.createExportAsModelSubmenu();
}).then(function(submenu){ }).then(function(submenu){
self.addOption(submenu); self.addOption(submenu);
self.addOption("Select mode", function() {
return self.getMap().toggleDrawing();
});
}); });
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment