Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
CLIMATE-374 UI runEvaluation doesnt use $window or $location for resu…
Browse files Browse the repository at this point in the history
…lts transition
  • Loading branch information
Michael Anderson authored and Michael Anderson committed Jan 7, 2018
1 parent c7c1aeb commit 4a64b62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ocw-ui/frontend/app/scripts/controllers/parameterselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,17 @@ angular.module('ocwUiApp')
data['lon_min'] = $scope.displayParams.lonMin,
data['lon_max'] = $scope.displayParams.lonMax,

$http.post(`${$rootScope.baseURL}/processing/run_evaluation/`, data).
success((data) => {
const evalWorkDir = data.eval_work_dir;
$http.post($rootScope.baseURL + '/processing/run_evaluation/', data).
success(function(data) {
var evalWorkDir = data['eval_work_dir'];

$scope.runningEval = false;

$timeout(() => {
let url = (evalWorkDir) ? `/results/${evalWorkDir}` : '/results';
$timeout(function() {
var url = (evalWorkDir) ? '/results/' + evalWorkDir : '/results';
$location.url(url)
}, 100);
}).error(() => {
}).error(function() {
$scope.runningEval = false;
});
};
Expand Down

0 comments on commit 4a64b62

Please sign in to comment.