climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1494249 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers/RcmedSelectionCtrl.js
Date Tue, 18 Jun 2013 18:50:12 GMT
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();
 }]);



Mime
View raw message