Fixes to teams/project/organizations/users/credentials navigation and pathing.

This commit is contained in:
chouseknecht
2013-05-22 14:19:51 -04:00
parent 91b534c841
commit 45a4ba7743
16 changed files with 305 additions and 220 deletions

View File

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