mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
Fixed js lint errors
This commit is contained in:
@@ -763,7 +763,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar
|
|||||||
var url = scope.job.url + 'job_tasks/?event_id=' + scope.activePlay;
|
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.search_all_tasks.length > 0) ? '&id__in=' + scope.search_all_tasks.join() : '';
|
||||||
url += (scope.searchAllStatus === 'failed') ? '&failed=true' : '';
|
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();
|
$('#tasksMoreRows').fadeIn();
|
||||||
Rest.setUrl(url);
|
Rest.setUrl(url);
|
||||||
Rest.get()
|
Rest.get()
|
||||||
|
|||||||
@@ -939,7 +939,7 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
|||||||
};
|
};
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.factory('DrawPlays', [ function() {
|
.factory('DrawPlays', ['$log', function($log) {
|
||||||
return function(params) {
|
return function(params) {
|
||||||
var scope = params.scope,
|
var scope = params.scope,
|
||||||
idx = 0,
|
idx = 0,
|
||||||
@@ -957,6 +957,8 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
|||||||
result.push(plays[newKeys[idx]]);
|
result.push(plays[newKeys[idx]]);
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
$log.debug('setting plays to:');
|
||||||
|
$log.debug(result);
|
||||||
scope.plays = result;
|
scope.plays = result;
|
||||||
if (scope.liveEventProcessing) {
|
if (scope.liveEventProcessing) {
|
||||||
scope.$emit('FixPlaysScroll');
|
scope.$emit('FixPlaysScroll');
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ angular.module('JobStatusGraphWidget', ['RestServices', 'Utilities'])
|
|||||||
|
|
||||||
var scope = params.scope,
|
var scope = params.scope,
|
||||||
target = params.target,
|
target = params.target,
|
||||||
dashboard = params.dashboard,
|
// dashboard = params.dashboard,
|
||||||
|
|
||||||
html, element;
|
html, element;
|
||||||
|
|
||||||
html = "<div class=\"graph-container\">\n";
|
html = "<div class=\"graph-container\">\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user