Fixed js lint errors

This commit is contained in:
Chris Houseknecht
2014-07-02 18:08:53 -04:00
parent edfa9836a5
commit befffdb8d9
4 changed files with 16 additions and 15 deletions

View File

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

View File

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

View File

@@ -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";