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:12 UTC

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

Author: joyce
Date: Tue Jun 18 18:50:11 2013
New Revision: 1494249

URL: http://svn.apache.org/r1494249
Log:
Resolve CLIMATE-124 - Define getObservations on scope

- Change getObservations definition to bind on scope.
- Change init call to getObservations to use scope binding.

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=1494249&r1=1494248&r2=1494249&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:11 2013
@@ -23,7 +23,7 @@ function($rootScope, $scope, $http, $tim
 	$scope.datasetCount = selectedDatasetInformation.getDatasets();
 	$scope.fileAdded = false;
 
-	var getObservations = function() {
+	$scope.getObservations = function() {
 		$http.jsonp($rootScope.baseURL + '/getObsDatasets?callback=JSON_CALLBACK').
 			success(function(data) {
 				$scope.availableObs = data;
@@ -103,5 +103,5 @@ function($rootScope, $scope, $http, $tim
 	};
 
 	// Grab the available observations from RCMED
-	getObservations();
+	$scope.getObservations();
 }]);