Index: gm/rebaseline_server/static/loader.js |
=================================================================== |
--- gm/rebaseline_server/static/loader.js (revision 11776) |
+++ gm/rebaseline_server/static/loader.js (working copy) |
@@ -31,8 +31,9 @@ |
Loader.controller( |
'Loader.Controller', |
- function($scope, $http, $filter, $location) { |
+ function($scope, $http, $filter, $location, $window) { |
var resultsToLoad = $location.search().resultsToLoad; |
+ $window.document.title = "Loading GM Results..."; |
epoger
2013/10/15 18:31:21
incidental change: Change the document title based
|
$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 = ""; |
+ $window.document.title = "Current GM Results"; |
jcgregorio
2013/10/15 18:48:57
$scope.title = "Current...
And then update the HT
epoger
2013/10/15 19:25:00
That doesn't work without some additional changes.
jcgregorio
2013/10/15 19:38:32
Urg, I wish that wasn't so complicated, leave it a
|
} |
).error( |
function(data, status, header, config) { |
$scope.loadingMessage = "Failed to load results of type '" |
+ resultsToLoad + "'"; |
+ $window.document.title = "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 |