aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/apps/personApp/personApp.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/webapp/apps/personApp/personApp.js')
-rwxr-xr-xsrc/main/webapp/apps/personApp/personApp.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main/webapp/apps/personApp/personApp.js b/src/main/webapp/apps/personApp/personApp.js
deleted file mode 100755
index 363e498..0000000
--- a/src/main/webapp/apps/personApp/personApp.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-var personApp = angular.module('personApp', ['person', 'build', 'pagingTableService', 'core.directives']).config(function ($routeProvider, $locationProvider) {
- $routeProvider.
- when('/', {controller: PersonCtrl, templateUrl: '/apps/personApp/person.html?noCache=' + noCache});
-});
-
-function PersonCtrl($scope, $routeParams, Person, Build, PagingTableService) {
- var personUuid = uuid;
-
- $scope.mode = 'overview';
-
- $scope.builds = PagingTableService.create($scope, PagingTableService.defaultCallback(Build, {person: personUuid}));
-
- $scope.setMode = function(mode) {
- $scope.mode = mode;
- switch(mode) {
- case 'builds':
- var builds = $scope.builds;
-
- console.log("$scope.builds.length=" + builds.rows.length);
- if (builds.rows.length == 0) {
- $scope.builds.first();
- }
- break;
- }
- };
-
- Person.get({uuid: uuid}, function (person) {
- $scope.person = person;
- });
-
- Build.query({person: uuid}, function (builds) {
- $scope.recentBuilds = builds;
- });
-}