Fixed JS lint errors.

This commit is contained in:
Chris Houseknecht 2014-08-16 00:46:28 -04:00
parent 5a5398664a
commit 8c7c81bebc
3 changed files with 2 additions and 8 deletions

View File

@ -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();
}
}

View File

@ -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'];

View File

@ -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.