mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Fixed JS lint errors.
This commit is contained in:
parent
5a5398664a
commit
8c7c81bebc
@ -526,7 +526,6 @@ angular.module('Tower', [
|
||||
}
|
||||
if (next && next.$$route && (!/^\/(login|logout)/.test(next.$$route.originalPath))) {
|
||||
// if not headed to /login or /logout, then check the license
|
||||
console.log(next);
|
||||
CheckLicense.test();
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,11 +31,7 @@ function JobsListController ($rootScope, $log, $scope, $compile, $routeParams, C
|
||||
job_socket.init();
|
||||
job_socket.on("status_changed", function(data) {
|
||||
if (api_complete) {
|
||||
console.log('here');
|
||||
console.log(data);
|
||||
processEvent(data);
|
||||
} else {
|
||||
console.log('api not completed!');
|
||||
}
|
||||
});
|
||||
schedule_socket = Socket({
|
||||
@ -68,7 +64,6 @@ function JobsListController ($rootScope, $log, $scope, $compile, $routeParams, C
|
||||
}, 3000);
|
||||
|
||||
function processEvent(event) {
|
||||
console.log(event);
|
||||
switch(event.status) {
|
||||
case 'running':
|
||||
running_scope.search('running_job');
|
||||
@ -263,4 +258,4 @@ function JobsListController ($rootScope, $log, $scope, $compile, $routeParams, C
|
||||
}
|
||||
|
||||
JobsListController.$inject = ['$rootScope', '$log', '$scope', '$compile', '$routeParams', 'ClearScope', 'Breadcrumbs', 'LoadBreadCrumbs', 'LoadSchedulesScope', 'LoadJobsScope', 'RunningJobsList', 'CompletedJobsList',
|
||||
'QueuedJobsList', 'ScheduledJobsList', 'GetChoices', 'GetBasePath', 'Wait', 'Socket'];
|
||||
'QueuedJobsList', 'ScheduledJobsList', 'GetChoices', 'GetBasePath', 'Wait', 'Socket'];
|
||||
|
||||
@ -483,7 +483,7 @@ function(Find, GetBasePath, Rest, Wait, ProcessErrors, Prompt, Alert){
|
||||
scope.search(scope.iterator);
|
||||
}
|
||||
})
|
||||
.error(function (data, status) {
|
||||
.error(function () {
|
||||
Wait('stop');
|
||||
$('#prompt-modal').modal('hide');
|
||||
// Ignore the error. The job most likely already finished.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user