nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitweb: show grades in user page
[nit.git]
/
share
/
nitweb
/
javascripts
/
users.js
diff --git
a/share/nitweb/javascripts/users.js
b/share/nitweb/javascripts/users.js
index
42e7d6f
..
b9c077a
100644
(file)
--- a/
share/nitweb/javascripts/users.js
+++ b/
share/nitweb/javascripts/users.js
@@
-27,8
+27,16
@@
$scope.error = err;
});
};
$scope.error = err;
});
};
-
+ this.loadGrades = function() {
+ User.loadUserStars(
+ function(data) {
+ $scope.ratings = data;
+ }, function(err) {
+ $scope.error = err;
+ });
+ };
this.loadUser();
this.loadUser();
+ this.loadGrades();
}])
.directive('userMenu', ['User', function(User) {
}])
.directive('userMenu', ['User', function(User) {