From d7c84ce54a6b8b1f61d004b8643de9ffa2893900 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Tue, 8 Jul 2014 00:57:07 -0400 Subject: [PATCH] Job detail page re-refactor Job host events dialog. --- awx/ui/static/js/controllers/JobDetail.js | 1 + awx/ui/static/js/helpers/HostEventsViewer.js | 2 ++ awx/ui/static/partials/job_detail.html | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/controllers/JobDetail.js b/awx/ui/static/js/controllers/JobDetail.js index 4e6a623fef..8921e3ffc0 100644 --- a/awx/ui/static/js/controllers/JobDetail.js +++ b/awx/ui/static/js/controllers/JobDetail.js @@ -1006,6 +1006,7 @@ function JobDetailController ($location, $rootScope, $scope, $compile, $routePar scope.hostEventsViewer = function(id, name) { HostEventsViewer({ + scope: scope, id: id, name: name, url: scope.job.related.job_events + '?event__icontains=runner' diff --git a/awx/ui/static/js/helpers/HostEventsViewer.js b/awx/ui/static/js/helpers/HostEventsViewer.js index 84199650fd..79c2393dd0 100644 --- a/awx/ui/static/js/helpers/HostEventsViewer.js +++ b/awx/ui/static/js/helpers/HostEventsViewer.js @@ -16,6 +16,8 @@ angular.module('HostEventsViewerHelper', ['ModalDialog', 'Utilities']) return function(params) { var parent_scope = params.scope, url = params.url, + host_id = params.id, + host_name = params.name, title = params.title, //optional scope = parent_scope.$new(true); diff --git a/awx/ui/static/partials/job_detail.html b/awx/ui/static/partials/job_detail.html index 223b70fe41..a55b5f9334 100644 --- a/awx/ui/static/partials/job_detail.html +++ b/awx/ui/static/partials/job_detail.html @@ -226,7 +226,7 @@