mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 09:34:04 +02:00
Match terminology with ReverseWay action
This commit is contained in:
@@ -74,7 +74,7 @@ iD.modes.Select = function(entity, initial) {
|
||||
|
||||
inspector
|
||||
.on('changeTags', changeTags)
|
||||
.on('changeWayDirection', function(d) {
|
||||
.on('reverseWay', function(d) {
|
||||
mode.history.perform(
|
||||
iD.actions.ReverseWay(d.id),
|
||||
'reversed a way');
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
iD.ui.inspector = function() {
|
||||
var event = d3.dispatch('changeTags', 'changeWayDirection',
|
||||
var event = d3.dispatch('changeTags', 'reverseWay',
|
||||
'update', 'remove', 'close', 'splitWay'),
|
||||
taginfo = iD.taginfo(),
|
||||
initial = false,
|
||||
@@ -84,7 +84,7 @@ iD.ui.inspector = function() {
|
||||
minorButtons.append('a')
|
||||
.attr('href', '#')
|
||||
.text('Reverse Direction')
|
||||
.on('click', function() { event.changeWayDirection(entity); });
|
||||
.on('click', function() { event.reverseWay(entity); });
|
||||
}
|
||||
if (entity.geometry() === 'vertex') {
|
||||
minorButtons.append('a')
|
||||
|
||||
Reference in New Issue
Block a user