From 29b2b3cecfcf3ea334a4d7d6a081922371cfa5b1 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Thu, 19 Jun 2014 00:32:39 -0400 Subject: [PATCH] Job detail page refactor Fixing scrolling issue on tasks list. --- awx/ui/static/js/controllers/JobDetail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index ea166a2dad..58ff6b9307 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -746,7 +746,7 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log, 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__lt=' + scope.tasks[scope.tasks[0]].id + '&page_size=' + scope.tasksMaxRows + '&order_by=id'; + url += '&id__lt=' + scope.tasks[0].id + '&page_size=' + scope.tasksMaxRows + '&order_by=-id'; Wait('start'); Rest.setUrl(url); Rest.get()