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

Unified Diff: gm/rebaseline_server/static/loader.js

Issue 364253003: rebaseline_server: if urlSchemaVersion is not specified, assume current (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/rebaseline_server/static/constants.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/rebaseline_server/static/loader.js
diff --git a/gm/rebaseline_server/static/loader.js b/gm/rebaseline_server/static/loader.js
index dbded05f2500684664a2653d37368f715d3b0df0..8df00e35672e991fb56b35464f505d4f4156a865 100644
--- a/gm/rebaseline_server/static/loader.js
+++ b/gm/rebaseline_server/static/loader.js
@@ -427,14 +427,12 @@ Loader.controller(
$scope.queryParameters.load = function() {
var nameValuePairs = $location.search();
- var urlSchemaVersion = nameValuePairs[constants.URL_KEY__SCHEMA_VERSION];
- if (!urlSchemaVersion) {
- $scope.urlSchemaVersionLoaded = 0;
- } else if (urlSchemaVersion == constants.URL_VALUE__SCHEMA_VERSION__ALWAYS_CURRENT) {
- $scope.urlSchemaVersionLoaded = constants.URL_VALUE__SCHEMA_VERSION__CURRENT;
- } else {
- $scope.urlSchemaVersionLoaded = urlSchemaVersion;
+ // If urlSchemaVersion is not specified, we assume the current version.
+ var urlSchemaVersion = constants.URL_VALUE__SCHEMA_VERSION__CURRENT;
+ if (constants.URL_KEY__SCHEMA_VERSION in nameValuePairs) {
+ urlSchemaVersion = nameValuePairs[constants.URL_KEY__SCHEMA_VERSION];
}
+ $scope.urlSchemaVersionLoaded = urlSchemaVersion;
angular.forEach($scope.queryParameters.map,
function(copier, paramName) {
« no previous file with comments | « gm/rebaseline_server/static/constants.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698