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/04 23:28:42 UTC
svn commit: r1489624 -
/incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js
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',