aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js
diff options
context:
space:
mode:
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 });