diff --git a/src/core/js/edit_mode.js b/src/core/js/edit_mode.js index 802b118b88b44c66a194de51a76c2577f25e2170..fe0ed86a6d2818a79e15385ecaa2916db217a48a 100644 --- a/src/core/js/edit_mode.js +++ b/src/core/js/edit_mode.js @@ -1275,13 +1275,6 @@ var edit_mode = new function() { * This is now done using bubbling so that the listeners are also dynamically updated. */ this.init_dragable = function() { - // The old approach, clumsy - use bubbling instead. - //var props = document.getElementsByClassName("caosdb-f-edit-drag"); - // for (var pel of props) { - // pel.addEventListener("dragstart", edit_mode.dragstart); - // pel.setAttribute("draggable", true); - // } - // Bubbling: Add the listener to the document and check whether the class is present. document.addEventListener("dragstart", function(event) { if (event.target.classList.contains("caosdb-f-edit-drag")) {