| Index: gm/rebaseline_server/static/loader.js
|
| ===================================================================
|
| --- gm/rebaseline_server/static/loader.js (revision 11776)
|
| +++ gm/rebaseline_server/static/loader.js (working copy)
|
| @@ -31,7 +31,8 @@
|
|
|
| Loader.controller(
|
| 'Loader.Controller',
|
| - function($scope, $http, $filter, $location) {
|
| + function($scope, $http, $filter, $location) {
|
| + $scope.windowTitle = "Loading GM Results...";
|
| var resultsToLoad = $location.search().resultsToLoad;
|
| $scope.loadingMessage = "Loading results of type '" + resultsToLoad +
|
| "', please wait...";
|
| @@ -44,6 +45,7 @@
|
| $scope.categories = data.categories;
|
| $scope.testData = data.testData;
|
| $scope.sortColumn = 'test';
|
| + $scope.showTodos = true;
|
|
|
| for (var i = 0; i < $scope.testData.length; i++) {
|
| $scope.testData[i].index = i;
|
| @@ -59,11 +61,13 @@
|
|
|
| $scope.updateResults();
|
| $scope.loadingMessage = "";
|
| + $scope.windowTitle = "Current GM Results";
|
| }
|
| ).error(
|
| function(data, status, header, config) {
|
| $scope.loadingMessage = "Failed to load results of type '"
|
| + resultsToLoad + "'";
|
| + $scope.windowTitle = "Failed to Load GM Results";
|
| }
|
| );
|
|
|
| @@ -109,6 +113,11 @@
|
| $scope.areUpdatesPending = true;
|
| }
|
|
|
| + $scope.localTimeString = function(secondsPastEpoch) {
|
| + var d = new Date(secondsPastEpoch * 1000);
|
| + return d.toString();
|
| + }
|
| +
|
| $scope.updateResults = function() {
|
| $scope.displayLimit = $scope.displayLimitPending;
|
| // TODO(epoger): Every time we apply a filter, AngularJS creates
|
|
|