From befffdb8d9b9285ed577dd0962023f8e2319474e Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Wed, 2 Jul 2014 18:08:53 -0400 Subject: [PATCH] Fixed js lint errors --- awx/ui/static/js/controllers/JobDetail.js | 2 +- awx/ui/static/js/helpers/JobDetail.js | 4 +++- awx/ui/static/js/widgets/DashboardCounts.js | 22 ++++++++++----------- awx/ui/static/js/widgets/JobStatusGraph.js | 3 +-- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index 6fc13a9efa..69ec573cd1 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -763,7 +763,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar var url = scope.job.url + 'job_tasks/?event_id=' + scope.activePlay; url += (scope.search_all_tasks.length > 0) ? '&id__in=' + scope.search_all_tasks.join() : ''; url += (scope.searchAllStatus === 'failed') ? '&failed=true' : ''; - url += '&id__gt=' + scope.tasks[scope.tasks.length - 1].id; //+ '&page_size=' + scope.tasksMaxRows + '&order_by=id'; + url += '&id__gt=' + scope.tasks[scope.tasks.length - 1].id + '&page_size=' + scope.tasksMaxRows + '&order_by=id'; $('#tasksMoreRows').fadeIn(); Rest.setUrl(url); Rest.get() diff --git a/awx/ui/static/js/helpers/JobDetail.js b/awx/ui/static/js/helpers/JobDetail.js index 073f9154c0..1dd1c4a517 100644 --- a/awx/ui/static/js/helpers/JobDetail.js +++ b/awx/ui/static/js/helpers/JobDetail.js @@ -939,7 +939,7 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge }; }]) -.factory('DrawPlays', [ function() { +.factory('DrawPlays', ['$log', function($log) { return function(params) { var scope = params.scope, idx = 0, @@ -957,6 +957,8 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge result.push(plays[newKeys[idx]]); idx++; } + $log.debug('setting plays to:'); + $log.debug(result); scope.plays = result; if (scope.liveEventProcessing) { scope.$emit('FixPlaysScroll'); diff --git a/awx/ui/static/js/widgets/DashboardCounts.js b/awx/ui/static/js/widgets/DashboardCounts.js index 2b28bc85e3..1eaaddc517 100644 --- a/awx/ui/static/js/widgets/DashboardCounts.js +++ b/awx/ui/static/js/widgets/DashboardCounts.js @@ -44,17 +44,17 @@ angular.module('DashboardCountsWidget', ['RestServices', 'Utilities']) // html += "\n"; - html = "
\n"; + html = "
\n"; - html = "
\n"; - html += "\n"; - html += "\n"; - html += "\n"; - html += "\n"; - html += "\n"; - html += "
"+dashboard.projects.failed+"
Project Sync Failure
\n"; - // html += "\n"; - html += "
\n"; + html = "
\n"; + html += "\n"; + html += "\n"; + html += "\n"; + html += "\n"; + html += "\n"; + html += "
"+dashboard.projects.failed+"
Project Sync Failure
\n"; + // html += "\n"; + html += "
\n"; // html += "
\n"; // html += "
Hosts
\n"; @@ -65,7 +65,7 @@ angular.module('DashboardCountsWidget', ['RestServices', 'Utilities']) // html += "
Project Sync Failures
\n"; // // html += "
Users
\n"; // html += "
\n"; - html += "
\n"; + html += "
\n"; // html = "
\n"; diff --git a/awx/ui/static/js/widgets/JobStatusGraph.js b/awx/ui/static/js/widgets/JobStatusGraph.js index 450ccf7c94..a72e650668 100644 --- a/awx/ui/static/js/widgets/JobStatusGraph.js +++ b/awx/ui/static/js/widgets/JobStatusGraph.js @@ -16,8 +16,7 @@ angular.module('JobStatusGraphWidget', ['RestServices', 'Utilities']) var scope = params.scope, target = params.target, - dashboard = params.dashboard, - + // dashboard = params.dashboard, html, element; html = "
\n";