| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 (baseUrl.indexOf('://') == -1)) { | 289 (baseUrl.indexOf('://') == -1)) { |
| 290 imageSet[baseUrlKey] = '/' + baseUrl; | 290 imageSet[baseUrlKey] = '/' + baseUrl; |
| 291 } | 291 } |
| 292 } | 292 } |
| 293 ); | 293 ); |
| 294 | 294 |
| 295 $scope.readyToDisplay = true; | 295 $scope.readyToDisplay = true; |
| 296 $scope.updateResults(); | 296 $scope.updateResults(); |
| 297 $scope.loadingMessage = ""; | 297 $scope.loadingMessage = ""; |
| 298 $scope.windowTitle = "Current GM Results"; | 298 $scope.windowTitle = "Current GM Results"; |
| 299 |
| 300 $timeout( function() { |
| 301 make_results_header_sticky(); |
| 302 }); |
| 299 } | 303 } |
| 300 } | 304 } |
| 301 ).error( | 305 ).error( |
| 302 function(data, status, header, config) { | 306 function(data, status, header, config) { |
| 303 $scope.loadingMessage = "FAILED to load."; | 307 $scope.loadingMessage = "FAILED to load."; |
| 304 $scope.windowTitle = "Failed to Load GM Results"; | 308 $scope.windowTitle = "Failed to Load GM Results"; |
| 305 } | 309 } |
| 306 ); | 310 ); |
| 307 | 311 |
| 308 | 312 |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 */ | 1026 */ |
| 1023 $scope.getImageDiffRelativeUrl = function(imagePair) { | 1027 $scope.getImageDiffRelativeUrl = function(imagePair) { |
| 1024 var before = | 1028 var before = |
| 1025 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_A_URL] + "-vs-" + | 1029 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_A_URL] + "-vs-" + |
| 1026 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_B_URL]; | 1030 imagePair[constants.KEY__IMAGEPAIRS__IMAGE_B_URL]; |
| 1027 return before.replace(/[^\w\-]/g, "_") + ".png"; | 1031 return before.replace(/[^\w\-]/g, "_") + ".png"; |
| 1028 } | 1032 } |
| 1029 | 1033 |
| 1030 } | 1034 } |
| 1031 ); | 1035 ); |
| OLD | NEW |