Added variable data fied to Host detail page. Save/edit work -made changes in the Hosts controller for this. Still need to validate text blob is valid JSON.

This commit is contained in:
chouseknecht
2013-05-21 12:57:15 -04:00
parent f5c487aab8
commit c238a85581
6 changed files with 87 additions and 29 deletions

View File

@@ -197,6 +197,15 @@ angular.module('ansible', [
Authorization.restoreUserInfo(); //user must have hit browser refresh
}
}
// Make the correct tab active
var base = ($location.path().replace(/^\//,'').split('/')[0]);
if (base == '') {
$('.nav-tabs a[href="#' + 'organizations' + '"]').tab('show');
}
else {
base.replace(/\_/g,' ');
$('.nav-tabs a[href="#' + base + '"]').tab('show');
}
});
if (! Authorization.isTokenValid() ) {