climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skhud...@apache.org
Subject svn commit: r1513265 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/ParameterSelectCtrl.js
Date Mon, 12 Aug 2013 21:43:02 GMT
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;



Mime
View raw message