From 694e8b03515f25e36cef855eddb835355eff4c51 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 13 Jan 2013 10:58:05 +0100 Subject: PagingTableService: o Adding support for showing a spinner if the query takes more than 500ms. o Adding a spinner when searching for people. --- src/main/resources/webapp/apps/frontPageApp/frontPageApp.js | 4 ++-- src/main/resources/webapp/apps/frontPageApp/personList.html | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'src/main/resources/webapp/apps/frontPageApp') diff --git a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js index 9e507b4..def1e67 100755 --- a/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js +++ b/src/main/resources/webapp/apps/frontPageApp/frontPageApp.js @@ -71,13 +71,13 @@ function BadgeCtrl($scope, $routeParams, Badge) { } function PersonListCtrl($scope, Person, PagingTableService) { - var groupSize = 4; + var groupSize = 4, rows = 6; var personsWatcher = function () { $scope.personGroups = groupBy($scope.persons.rows, groupSize); }; $scope.persons = PagingTableService.create($scope, PagingTableService.defaultCallback(Person, {orderBy: "name"}), - {count: groupSize * 6, watcher: personsWatcher}); + {count: groupSize * rows, watcher: personsWatcher}); console.log("$scope.persons.searchText", $scope.persons.searchText); console.log("$scope.persons.rows", $scope.persons.rows); diff --git a/src/main/resources/webapp/apps/frontPageApp/personList.html b/src/main/resources/webapp/apps/frontPageApp/personList.html index 2c14b01..9f977ee 100755 --- a/src/main/resources/webapp/apps/frontPageApp/personList.html +++ b/src/main/resources/webapp/apps/frontPageApp/personList.html @@ -33,7 +33,15 @@
-
+
+
+
+
+
+
+
+ +
@@ -45,6 +53,7 @@
+