Skip to content
Snippets Groups Projects
Commit 4192cf5a authored by Chris Hallberg's avatar Chris Hallberg
Browse files

JS checkstyles 2.

parent 14a84160
No related merge requests found
...@@ -93,21 +93,6 @@ function doTreeSearch() ...@@ -93,21 +93,6 @@ function doTreeSearch()
} }
} }
function buildTreeWithXml(cb)
{
$.ajax({'url': path + '/Hierarchy/GetTree',
'data': {
'hierarchyID': hierarchyID,
'id': recordID,
'context': hierarchyContext,
'mode': 'Tree'
},
'success': function(xml) {
var nodes = buildJSONNodes($(xml).find('root'));
cb.call(this, nodes);
}
});
}
function buildJSONNodes(xml) function buildJSONNodes(xml)
{ {
var jsonNode = []; var jsonNode = [];
...@@ -131,6 +116,21 @@ function buildJSONNodes(xml) ...@@ -131,6 +116,21 @@ function buildJSONNodes(xml)
}); });
return jsonNode; return jsonNode;
} }
function buildTreeWithXml(cb)
{
$.ajax({'url': path + '/Hierarchy/GetTree',
'data': {
'hierarchyID': hierarchyID,
'id': recordID,
'context': hierarchyContext,
'mode': 'Tree'
},
'success': function(xml) {
var nodes = buildJSONNodes($(xml).find('root'));
cb.call(this, nodes);
}
});
}
$(document).ready(function() $(document).ready(function()
{ {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment