Fix the header links when we're on a non-angular page.

This commit is contained in:
yackob03 2013-10-24 23:56:08 -04:00
parent a8ebdc79c4
commit e418d21d31
2 changed files with 12 additions and 5 deletions

View file

@ -62,7 +62,14 @@ function HeaderCtrl($scope, $location, UserService, Restangular) {
UserService.load();
$location.path('/');
});
}
};
$scope.appLinkTarget = function() {
if ($("div[ng-view]").length === 0) {
return "_self";
}
return "";
};
$scope.$on('$includeContentLoaded', function() {
// THIS IS BAD, MOVE THIS TO A DIRECTIVE