CLIMATE-355 - Minor ObservationSelect ctrl cleanup for test fixes
Project: http://git-wip-us.apache.org/repos/asf/climate/repo Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/32f4dde7 Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/32f4dde7 Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/32f4dde7 Branch: refs/heads/master Commit: 32f4dde7e00817dbd4b08c1dd2391f9b916aa274 Parents: 38f7ba8 Author: Michael Joyce <[email protected]> Authored: Tue Aug 26 12:46:21 2014 -0700 Committer: Michael Joyce <[email protected]> Committed: Tue Aug 26 12:46:21 2014 -0700 ---------------------------------------------------------------------- ocw-ui/frontend-new/app/scripts/controllers/observationselect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/climate/blob/32f4dde7/ocw-ui/frontend-new/app/scripts/controllers/observationselect.js ---------------------------------------------------------------------- diff --git a/ocw-ui/frontend-new/app/scripts/controllers/observationselect.js b/ocw-ui/frontend-new/app/scripts/controllers/observationselect.js index 696c8b1..6dfbb57 100644 --- a/ocw-ui/frontend-new/app/scripts/controllers/observationselect.js +++ b/ocw-ui/frontend-new/app/scripts/controllers/observationselect.js @@ -43,7 +43,7 @@ angular.module('ocwUiApp') $scope.timeSelect = $scope.times[0]; // Grab the path leader information that the webserver is using to limit directory access. - $scope.pathLeader = 'False'; + $scope.pathLeader = false; $http.jsonp($rootScope.baseURL + '/dir/path_leader/?callback=JSON_CALLBACK'). success(function(data) { $scope.pathLeader = data.leader; @@ -72,7 +72,7 @@ angular.module('ocwUiApp') // If the backend is limiting directory access we need to add that leader to our path // so it remains valid! - if ($scope.pathLeader != 'False') { + if ($scope.pathLeader) { input = $scope.pathLeader + input }
