Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Side by Side Diff: gm/rebaseline_server/static/loader.js

Issue 446933002: make the action buttons for rebaseline server stick to the top of the window as you scroll (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address Elliot's comments Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gm/rebaseline_server/static/live-view.html ('k') | gm/rebaseline_server/static/utils.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 );
OLDNEW
« no previous file with comments | « gm/rebaseline_server/static/live-view.html ('k') | gm/rebaseline_server/static/utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698