Fixed the launch from job template list to redirect to jobs page.

This commit is contained in:
chouseknecht 2013-10-15 16:29:52 -04:00
parent 78852bfb86
commit 440a6b122d
2 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,8 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
function navigate(canceled) {
//Decide where to send the user once the modal dialog closes
if (!canceled) {
console.log('here');
console.log('base: ' + base);
if (base == 'jobs') {
scope.refreshJob();
}
@ -243,7 +245,7 @@ angular.module('JobSubmissionHelper', [ 'RestServices', 'Utilities', 'Credential
scope.refresh();
}
else {
$location.url('/#/jobs');
$location.path('/jobs');
}
})
.error( function(data, status, headers, config) {

View File

@ -570,6 +570,7 @@ angular.module('InventoryHelper', [ 'RestServices', 'Utilities', 'OrganizationLi
Rest.get()
.success( function(data, status, headers, config) {
if (data.count == 0) {
console.log('emitted');
// no groups exist, show help
scope.$emit('ShowHelp');
}