Browse Source

Merge branch 'fixMove' of LInE/ivprog into master

Lucas de Souza 5 years ago
parent
commit
8189ea6a85
1 changed files with 3 additions and 4 deletions
  1. 3 4
      js/visualUI/functions.js

+ 3 - 4
js/visualUI/functions.js

@@ -461,7 +461,7 @@ window.evento_drag;
 function updateProgramObjDrag () {
   const nodes = Array.prototype.slice.call( $('.all_functions').children() );
   let function_index;
-  // var start_index;
+  var start_index;
   let function_obj;
   $(evento_drag.item).parentsUntil(".all_functions").each(function (index) {
     const ref = $(this);
@@ -628,9 +628,7 @@ function prepareDragHandler (evt) {
 var command_in_drag;
 
 function addSortableHandler (element, id_function) {
-  if(true) { // DISABLE COMMAND DRAG
-    return;
-  }
+  
   var n_group = 'commands_drag_' + id_function;
   Sortable.create(element, {
     handle: '.command_drag',
@@ -664,6 +662,7 @@ function addSortableHandler (element, id_function) {
        try {
         updateProgramObjDrag();
        } catch (e) {
+        console.error(e);
         window.draging = false;
        }
     },