From 98ee2d03100b7916ab157e2d0c4a19e04c070f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Fri, 14 Jul 2017 12:34:56 +0200 Subject: [PATCH] remove ctrl click for hole feature (replaced by columns) --- src/c3nav/editor/static/editor/js/editor.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/c3nav/editor/static/editor/js/editor.js b/src/c3nav/editor/static/editor/js/editor.js index 3d903b00..2f05bcc1 100644 --- a/src/c3nav/editor/static/editor/js/editor.js +++ b/src/c3nav/editor/static/editor/js/editor.js @@ -399,7 +399,6 @@ editor = { } else if (feature.properties.type+'-'+String(feature.properties.id) === editor._editing_id) { editor._editing_layer = layer; editor._bounds_layer = layer; - layer.on('click', editor._click_editing_layer); } else if (feature.properties.bounds === true) { editor._bounds_layer = layer; } @@ -523,14 +522,6 @@ editor = { e.layer.remove(); } }, - _click_editing_layer: function(e) { - // click callback for a currently edited layer. create a hole on ctrl+click. - if ((e.originalEvent.ctrlKey || e.originalEvent.metaKey)) { - if (e.target instanceof L.Polygon) { - this.editor.newHole(e.latlng); - } - } - }, _done_creating: function(e) { // called when creating is completed (by clicking on the last point). fills in the form and switches to editing. if (editor._creating) { @@ -548,7 +539,6 @@ editor = { layer.enableEdit(); layer.editor._resizeLatLng.__vertex._icon.style.display = 'none'; } - editor._editing_layer.on('click', editor._click_editing_layer); editor._update_editing(); $('#sidebar').find('.content').find('form.creation-lock').removeClass('creation-lock'); $('#id_name').focus();