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

Side by Side Diff: gm/rebaseline_server/static/live-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 | « no previous file | gm/rebaseline_server/static/live-view.html » ('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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 );
OLDNEW
« no previous file with comments | « no previous file | gm/rebaseline_server/static/live-view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698