Changeset 12516 for branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/users/usersCtrl.js
- Timestamp:
- 06/25/15 18:34:40 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
/trunk/sources merged: 12470-12476,12478-12482,12485,12488,12490-12494,12496-12497,12504,12506-12507,12509,12511-12512,12514
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3
-
Property
svn:global-ignores
set to
obj
-
Property
svn:ignore
set to
bin
-
Property
svn:global-ignores
set to
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/users/usersCtrl.js
r12477 r12516 2 2 var module = appStatisticsPlugin.getAngularModule(); 3 3 module.controller('app.statistics.usersCtrl', 4 ['$scope', 'app.statistics.data.service', function($scope, statisticsService) { 5 4 ['$scope', '$interval', 'app.statistics.userService', function ($scope, $interval, userService) { 5 $scope.interval = defaultPageUpdateInterval; 6 7 var getUsers = function() { 8 userService.getUsers({}, function(users) { 9 users.splice(0, 1); 10 $scope.users = users; 11 }); 12 }; 13 14 $scope.updateInterval = $interval(getUsers, $scope.interval); 15 var cancelInterval = $scope.$on('$locationChangeSuccess', function () { 16 $interval.cancel($scope.updateInterval); 17 cancelInterval(); 18 }); 19 getUsers(); // init page 6 20 }] 7 21 );
Note: See TracChangeset
for help on using the changeset viewer.