diff --git a/awx/ui/static/js/directives/job-status-graph.js b/awx/ui/static/js/directives/job-status-graph.js index 529fa01ad7..64ecc502d7 100644 --- a/awx/ui/static/js/directives/job-status-graph.js +++ b/awx/ui/static/js/directives/job-status-graph.js @@ -59,8 +59,6 @@ angular.module('GraphDirectives', []) } scope.removeGraphDataReady = scope.$on('graphDataReady', function (e, data) { - console.log("building graph", data); - var timeFormat, graphData = [ { "color": "#00aa00", @@ -133,7 +131,7 @@ angular.module('GraphDirectives', []) }); // when the Period drop down filter is used, create a new graph based on the - d3.selectAll(element.find(".n")[0]) + d3.selectAll(element.find(".n")) .on("click", function() { period = this.getAttribute("id"); $('#period-dropdown').replaceWith(""+this.text+"\n"); @@ -142,7 +140,7 @@ angular.module('GraphDirectives', []) }); //On click, update with new data - d3.selectAll(element.find(".m")[0]) + d3.selectAll(element.find(".m")) .on("click", function() { job_type = this.getAttribute("id"); $('#type-dropdown').replaceWith(""+this.text+"\n"); diff --git a/awx/ui/tests/unit/directives/job-status-graph-test.js b/awx/ui/tests/unit/directives/job-status-graph-test.js index 49246063d1..f890358e00 100644 --- a/awx/ui/tests/unit/directives/job-status-graph-test.js +++ b/awx/ui/tests/unit/directives/job-status-graph-test.js @@ -56,7 +56,6 @@ describe('Job Status Graph Directive', function() { var successfulSeries = filterDataSeries(0, lineData); var failedSeries = filterDataSeries(1, lineData); - console.log("test done"); expect(successfulSeries).to.eql( [ {x: 1, y: 0, series: 0}, {x: 2, y: 0, series: 0},