1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

Job launch

Fixed job launch of job templates page.
This commit is contained in:
Chris Houseknecht 2014-06-30 14:23:23 -04:00
parent 64bfd6ce26
commit 57443141c9

View File

@ -372,6 +372,7 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
return function (params) {
var scope = params.scope,
id = params.id,
base = $location.path().replace(/^\//, '').split('/')[0],
url,
job_template,
new_job_id,
@ -380,7 +381,13 @@ function($location, Wait, GetBasePath, LookUpInit, JobTemplateForm, CredentialLi
prompt_for_vars = false,
passwords;
url = GetBasePath('jobs') + id + '/';
if (base === 'job_templates') {
url = GetBasePath('job_templates');
}
else {
url = GetBasePath('jobs');
}
url += id + '/';
if (scope.removePostTheJob) {
scope.removePostTheJob();