changes to reflect PR comments (not finished)

This commit is contained in:
Jimmy Zelinskie 2015-02-24 17:50:54 -05:00
parent 758158391c
commit fb0d3d69c2
8 changed files with 32 additions and 172 deletions

View file

@ -30,8 +30,6 @@
for (var i = 0; i < user.organizations.length; i++) {
$scope.namespaces.push(user.organizations[i]);
}
//loadStarredRepos();
//loadRepos();
}
});
@ -39,16 +37,17 @@
// their repositories after they've signed in to actually have any content
// on the page.
$scope.$watch(function(scope) { return scope.user },
function(user) {
if (!user.anonymous) {
$scope.namespaces = [user];
for (var i = 0; i < user.organizations.length; i++) {
$scope.namespaces.push(user.organizations[i]);
}
loadStarredRepos();
loadRepos();
}
});
function(user) {
if (!user.anonymous) {
$scope.namespaces = [user];
for (var i = 0; i < user.organizations.length; i++) {
$scope.namespaces.push(user.organizations[i]);
}
loadStarredRepos();
loadRepos();
}
}
);
$scope.toggleStar = function(repo) {
if (repo.is_starred) {