diff --git a/front/src/js/app.js b/front/src/js/app.js index 8a601df..a17c4f7 100644 --- a/front/src/js/app.js +++ b/front/src/js/app.js @@ -13,7 +13,6 @@ var yltApp = angular.module('YellowLabTools', [ 'apiService', 'menuService', 'gradeDirective', - 'jsChildrenDirective', 'offendersDirectives' ]); diff --git a/front/src/js/directives/jsChildrenDirective.js b/front/src/js/directives/jsChildrenDirective.js deleted file mode 100644 index ca7372f..0000000 --- a/front/src/js/directives/jsChildrenDirective.js +++ /dev/null @@ -1,44 +0,0 @@ -var jsChildrenDirective = angular.module('jsChildrenDirective', []); - -jsChildrenDirective.directive('jsChildren', function() { - - return { - restrict: 'E', - scope: { - node: '=node' - }, - template: '
', - replace: true, - link: function(scope, element, attrs) { - - function recursiveHtmlBuilder(node) { - var html = ''; - - if (node.children) { - node.children.forEach(function(child) { - - var childArgs = ''; - if (child.data.callDetails && child.data.callDetails.arguments && child.data.callDetails.arguments.length > 0) { - childArgs = child.data.callDetails.arguments.join(' : '); - if (childArgs.length > 100) { - childArgs = childArgs.substr(0, 98) + '...'; - } - } - - html += '