climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1489624 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js
Date Tue, 04 Jun 2013 21:28:42 GMT
Author: joyce
Date: Tue Jun  4 21:28:27 2013
New Revision: 1489624

URL: http://svn.apache.org/r1489624
Log:
Resolves CLIMATE-80 - Trigger map redraw after user adjusts values.

- Adds a $broadcast of the 'redrawOverlays' event after checking the
  parameters that the user has (possibly) changed in
  ParameterSelectCtrl.

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

Modified: incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js?rev=1489624&r1=1489623&r2=1489624&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js (original)
+++ incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js Tue Jun  4 21:28:27 2013
@@ -258,10 +258,11 @@ function ParameterSelectCtrl($rootScope,
 			$scope.displayParams.lonMax = $scope.lonMax;
 		if ($scope.displayParams.start < $scope.start) 
 			$scope.displayParams.start = $scope.start;
-		if ($scope.displayParams.end > $scope.end)
+		if ($scope.displayParams.end > $scope.end) 
 			$scope.displayParams.end = $scope.end;
 
 		$scope.$apply();
+		$rootScope.$broadcast('redrawOverlays', []);
 	}
 
 	$scope.$watch('datasets', 



Mime
View raw message