aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-22 17:07:45 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-22 17:07:45 +0100
commit7e05c42378c79752c5f9b5bc4c0c8d59da97b47c (patch)
tree9c03e97be7976bb9c59db2d50428522b0968eb86 /src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
parentf868ed2dda3e000241bab0ee58d91b4eec8b6441 (diff)
downloadesper-testing-7e05c42378c79752c5f9b5bc4c0c8d59da97b47c.tar.gz
esper-testing-7e05c42378c79752c5f9b5bc4c0c8d59da97b47c.tar.bz2
esper-testing-7e05c42378c79752c5f9b5bc4c0c8d59da97b47c.tar.xz
esper-testing-7e05c42378c79752c5f9b5bc4c0c8d59da97b47c.zip
o Creating a little component to create and maintain a Bootstrap navbar.
Diffstat (limited to 'src/main/resources/webapp/apps/frontPageApp/frontPageApp.js')
-rwxr-xr-xsrc/main/resources/webapp/apps/frontPageApp/frontPageApp.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
index 4633892..6a3e6a6 100755
--- a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
+++ b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
@@ -11,11 +11,6 @@ var frontPageApp = angular.module('frontPageApp', ['ngGrid', 'person', 'badge',
when('/build/:buildUuid', {controller: BuildCtrl, templateUrl: '/apps/frontPageApp/build.html?noCache=' + noCache});
});
-function FrontPageCtrl($scope, Person, Badge) {
- $scope.persons = Person.query();
- $scope.recentBadges = Badge.query();
-}
-
function groupBy(array, size) {
var group = [];
var groups = [];
@@ -50,6 +45,11 @@ function groupByDay(array, accessor) {
return byDay;
}
+function FrontPageCtrl($scope, Person, Badge) {
+ $scope.persons = Person.query();
+ $scope.recentBadges = Badge.query();
+}
+
function BadgeListCtrl($scope, Badge, PagingTableService) {
var personsWatcher = function () {
$scope.badgeGroups = groupByDay($scope.badges.rows, function (badge) { return badge.badge.createdDate });