From 4192cf5aa54860d3aad0b5aabf672504c6f0e02a Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Fri, 23 Jan 2015 12:54:17 -0500 Subject: [PATCH] JS checkstyles 2. --- themes/bootstrap3/js/hierarchyTree.js | 30 +++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/themes/bootstrap3/js/hierarchyTree.js b/themes/bootstrap3/js/hierarchyTree.js index d6b2990de3a..7dd3ea048e7 100644 --- a/themes/bootstrap3/js/hierarchyTree.js +++ b/themes/bootstrap3/js/hierarchyTree.js @@ -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) { var jsonNode = []; @@ -131,6 +116,21 @@ function buildJSONNodes(xml) }); 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() { -- GitLab