From 62849fb120b54de78ca1c102ed6ad2eb801c8892 Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Fri, 19 Jul 2013 16:35:55 -0400 Subject: [PATCH] AC-236 Fixed post job submission navigation. --- awx/ui/static/js/helpers/JobTemplate.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/JobTemplate.js b/awx/ui/static/js/helpers/JobTemplate.js index afa7ffd3fa..32731a51ee 100644 --- a/awx/ui/static/js/helpers/JobTemplate.js +++ b/awx/ui/static/js/helpers/JobTemplate.js @@ -21,8 +21,13 @@ angular.module('JobTemplateHelper', [ 'RestServices', 'Utilities', 'CredentialFo function navigate(canceled) { //Decide where to send the user once the modal dialog closes - if (!canceled && base == 'jobs') { - scope.refreshJob(); + if (!canceled) { + if (base == 'jobs') { + scope.refreshJob(); + } + else { + $location.path('/jobs'); + } } else { $location.path('/' + base);