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) { |