mirror of
https://github.com/ansible/awx.git
synced 2026-05-10 19:07:36 -02:30
Fixes to teams/project/organizations/users/credentials navigation and pathing.
This commit is contained in:
@@ -204,7 +204,13 @@
|
||||
<script>
|
||||
$('a[data-toggle="tab"]').on('show', function (e) {
|
||||
var url = $(e.target).text();
|
||||
window.location = '#/' + url.toLowerCase().replace(/ /g,'_');
|
||||
var regx = new RegExp('/\#\/' + url.toLowerCase().replace(/ /g,'_') + '/');
|
||||
|
||||
var loc = window.location.toString();
|
||||
if (! regx.test(loc)) {
|
||||
console.log('change! ' + window.location.toString());
|
||||
window.location = '#/' + url.toLowerCase().replace(/ /g,'_');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user