Files
iD/js/id/operations/move.js
T
2013-02-23 20:06:37 -05:00

23 lines
572 B
JavaScript

iD.operations.Move = function(selection, context) {
var operation = function() {
context.enter(iD.modes.Move(context, selection));
};
operation.available = function() {
return selection.length > 1 ||
context.entity(selection[0]).type === 'way';
};
operation.enabled = function() {
return true;
};
operation.id = "move";
operation.key = t('operations.move.key');
operation.title = t('operations.move.title');
operation.description = t('operations.move.description');
return operation;
};