AC-236 Fixed post job submission navigation.

This commit is contained in:
chouseknecht 2013-07-19 16:35:55 -04:00
parent 37027088fd
commit 62849fb120

View File

@ -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);