You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by sk...@apache.org on 2013/08/12 23:43:02 UTC

svn commit: r1513265 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/ParameterSelectCtrl.js

Author: skhudiky
Date: Mon Aug 12 21:43:02 2013
New Revision: 1513265

URL: http://svn.apache.org/r1513265
Log:
CLIMATE-252 - Redirect user to correct result page

Modified:
    incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/ParameterSelectCtrl.js

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/ParameterSelectCtrl.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/ParameterSelectCtrl.js?rev=1513265&r1=1513264&r2=1513265&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/ParameterSelectCtrl.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/ParameterSelectCtrl.js Mon Aug 12 21:43:02 2013
@@ -154,6 +154,7 @@ function($rootScope, $scope, $http, $tim
 			var comp = data['comparisonPath'].split('/');
 			var model = data['modelPath'].split('/');
 			var obs = data['obsPath'].split('/');
+			var evalWorkDir = data['evalWorkDir'];
 
 			$rootScope.evalResults = {};
 			$rootScope.evalResults.comparisonPath = comp[comp.length - 1];
@@ -163,7 +164,11 @@ function($rootScope, $scope, $http, $tim
 			$scope.runningEval = false;
 
 			$timeout(function() {
-				window.location = "results.html";
+				if (evalWorkDir !== undefined) {
+					window.location = "#/results/"+evalWorkDir;
+				} else {
+					window.location = "#/results";
+				}
 			}, 100);
 		}).error(function() {
 			$scope.runningEval = false;