From f914482e19d330350be4106ba6648880f0e524ef Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 2 Feb 2015 20:58:49 -0500 Subject: [PATCH] Changed 'Cleanup Job' to name of cleanup job ran on the modal that prompts the user for number of days of data to keep, I changed the title of the modal to say the name of the job being run. --- awx/ui/static/js/helpers/ConfigureTower.js | 4 ++-- awx/ui/static/js/lists/ConfigureTowerJobs.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/js/helpers/ConfigureTower.js b/awx/ui/static/js/helpers/ConfigureTower.js index f6cdfce96f..1f28e0785c 100644 --- a/awx/ui/static/js/helpers/ConfigureTower.js +++ b/awx/ui/static/js/helpers/ConfigureTower.js @@ -136,12 +136,12 @@ angular.module('ConfigureTowerHelper', [ 'Utilities', 'RestServices', 'Schedules } }; - scope.submitJob = function (id) { + scope.submitJob = function (id, name) { Wait('start'); defaultUrl = GetBasePath('system_job_templates')+id+'/launch/'; CreateDialog({ id: 'prompt-for-days' , - title: "Cleanup Job", + title: name, scope: scope, width: 500, height: 300, diff --git a/awx/ui/static/js/lists/ConfigureTowerJobs.js b/awx/ui/static/js/lists/ConfigureTowerJobs.js index 6ffae95f8c..884e0847f9 100644 --- a/awx/ui/static/js/lists/ConfigureTowerJobs.js +++ b/awx/ui/static/js/lists/ConfigureTowerJobs.js @@ -34,7 +34,7 @@ angular.module('ConfigureTowerJobsListDefinition', []) submit: { label: 'Launch', mode: 'all', - ngClick: 'submitJob(configure_job.id)', + ngClick: 'submitJob(configure_job.id, configure_job.name)', awToolTip: 'Start a job using this template', dataPlacement: 'top' },