You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/06/18 20:50:19 UTC

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

Author: joyce
Date: Tue Jun 18 18:50:19 2013
New Revision: 1494252

URL: http://svn.apache.org/r1494252
Log:
Resolve CLIMATE-125 - Define getObservationTimeRange on scope

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

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js?rev=1494252&r1=1494251&r2=1494252&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js Tue Jun 18 18:50:19 2013
@@ -35,7 +35,7 @@ function($rootScope, $scope, $http, $tim
 			});
 	};
 
-	var getObservationTimeRange = function(datasetID) {
+	$scope.getObservationTimeRange = function(datasetID) {
 		var times = {
 			'1' : {'start' : '1989-01-01 00:00:00','end' : '2009-12-31 00:00:00'},	// ERA-Interim
 			'2' : {'start' : '2002-08-31 00:00:00','end' : '2010-01-01 00:00:00'},	// AIRS
@@ -65,7 +65,7 @@ function($rootScope, $scope, $http, $tim
 		// This is a horrible hack for temporarily getting a valid time range
 		// for the selected observation. Eventually we need to handle this more
 		// elegantly than indexing into an array...
-		var timeRange = getObservationTimeRange($scope.datasetSelection["dataset_id"]);
+		var timeRange = $scope.getObservationTimeRange($scope.datasetSelection["dataset_id"]);
 
 		var newDataset = {};