app/js/tree_logic.js
// Deletes node (assumes current workspace)
Deletes node (assumes current workspace)
Deletes node ( assumes current workspace )
function deleteNode(node) {
    console.log(node);
    var toDeleteFromIdx = getChildFileNodes(node);
    console.log(toDeleteFromIdx);
    $('#' + currentWorkspace + '_tree').tree('removeNode', node);
    addTreeTooltips(currentWorkspace);
    addToQueue("index/delete/" + currentWorkspace, null, {'json_lst': toDeleteFromIdx}, currentWorkspace);
}
function deleteNode ( node ) { console . log ( node ) ; var toDeleteFromIdx = getChildFileNodes ( node ) ; console . log ( toDeleteFromIdx ) ; $ ( '#' + currentWorkspace + '_tree' ) . tree ( 'removeNode' , node ) ; addTreeTooltips ( currentWorkspace ) ; addToQueue ( "index/delete/" + currentWorkspace , null , { 'json_lst' : toDeleteFromIdx } , currentWorkspace ) ; }
Deletes node (assumes current workspace)
Deletes node ( assumes current workspace )
// Update tree // Write tree data to tree json file in the workspace repo //treeToJson(currentWorkspace); // Adds tooltip logic to tree (when deleting a node in this case) // Sends index command, node Id, and current workspace to backend // Adds command to queue