Suppress radial menu when selecting from selection list

This commit is contained in:
Bryan Housel
2015-03-18 22:19:23 -04:00
parent 0ced23eaaf
commit d7a6b6916c
+6 -3
View File
@@ -1,5 +1,10 @@
iD.ui.SelectionList = function(context, selectedIDs) {
function selectEntity(entity) {
context.enter(iD.modes.Select(context, [entity.id]).suppressMenu(true));
}
function selectionList(selection) {
selection.classed('selection-list-pane', true);
@@ -28,9 +33,7 @@ iD.ui.SelectionList = function(context, selectedIDs) {
var enter = items.enter().append('button')
.attr('class', 'feature-list-item')
.on('click', function(entity) {
context.enter(iD.modes.Select(context, [entity.id]));
});
.on('click', selectEntity);
// Enter