OLD | NEW |
1 /* | 1 /* |
2 * Loader: | 2 * Loader: |
3 * Reads GM result reports written out by results.py, and imports | 3 * Reads GM result reports written out by results.py, and imports |
4 * them into $scope.extraColumnHeaders and $scope.imagePairs . | 4 * them into $scope.extraColumnHeaders and $scope.imagePairs . |
5 */ | 5 */ |
6 var Loader = angular.module( | 6 var Loader = angular.module( |
7 'Loader', | 7 'Loader', |
8 ['ConstantsModule'] | 8 ['ConstantsModule'] |
9 ); | 9 ); |
10 | 10 |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 (baseUrl.indexOf('://') == -1)) { | 284 (baseUrl.indexOf('://') == -1)) { |
285 imageSet[baseUrlKey] = $scope.resultsToLoad + '/../' + baseUrl; | 285 imageSet[baseUrlKey] = $scope.resultsToLoad + '/../' + baseUrl; |
286 } | 286 } |
287 } | 287 } |
288 ); | 288 ); |
289 | 289 |
290 $scope.readyToDisplay = true; | 290 $scope.readyToDisplay = true; |
291 $scope.updateResults(); | 291 $scope.updateResults(); |
292 $scope.loadingMessage = ""; | 292 $scope.loadingMessage = ""; |
293 $scope.windowTitle = "Current GM Results"; | 293 $scope.windowTitle = "Current GM Results"; |
| 294 |
| 295 $timeout( function() { |
| 296 make_results_header_sticky(); |
| 297 }); |
294 } | 298 } |
295 } | 299 } |
296 ).error( | 300 ).error( |
297 function(data, status, header, config) { | 301 function(data, status, header, config) { |
298 $scope.loadingMessage = "FAILED to load."; | 302 $scope.loadingMessage = "FAILED to load."; |
299 $scope.windowTitle = "Failed to Load GM Results"; | 303 $scope.windowTitle = "Failed to Load GM Results"; |
300 } | 304 } |
301 ); | 305 ); |
302 | 306 |
303 | 307 |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 */ | 1021 */ |
1018 $scope.getImageDiffRelativeUrl = function(imagePair) { | 1022 $scope.getImageDiffRelativeUrl = function(imagePair) { |
1019 var before = | 1023 var before = |
1020 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_A_URL] + "-vs-" + | 1024 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_A_URL] + "-vs-" + |
1021 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_B_URL]; | 1025 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_B_URL]; |
1022 return before.replace(/[^\w\-]/g, "_") + ".png"; | 1026 return before.replace(/[^\w\-]/g, "_") + ".png"; |
1023 } | 1027 } |
1024 | 1028 |
1025 } | 1029 } |
1026 ); | 1030 ); |
OLD | NEW |