Skip to content

Commit

Permalink
Remove the delnode method as no-one uses it
Browse files Browse the repository at this point in the history
The NodesTree is using it's own Ajax helper methods to communicate with
NodesController.
  • Loading branch information
Daniel Martin committed Jul 5, 2011
1 parent c1c010f commit 834fee2
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions public/javascripts/thebrain.js
Expand Up @@ -31,30 +31,6 @@ function addnode(node, callback) {
});
}

function delnode(node, callback){
var p = { id: node.id };
Ext.Ajax.request({
url: 'json/node_delete',
params: p,
success: function(response, options) {
dradisstatus.setStatus({
text: 'Node removed from the server',
clear: 5000
});
dradis.revision += 1;
},
failure: function(response, options) {
dradisstatus.setStatus({
text: 'An error occured with the Ajax request',
iconCls: 'error',
clear: 5000
});
}
});

}


//------------------------------------------------------------------------ revision poller

function checkrevision(interval) {
Expand Down

0 comments on commit 834fee2

Please sign in to comment.