Return-Path: X-Original-To: apmail-climate-commits-archive@minotaur.apache.org Delivered-To: apmail-climate-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3888107D0 for ; Tue, 4 Jun 2013 21:29:02 +0000 (UTC) Received: (qmail 4563 invoked by uid 500); 4 Jun 2013 21:29:02 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 4539 invoked by uid 500); 4 Jun 2013 21:29:02 -0000 Mailing-List: contact commits-help@climate.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.apache.org Delivered-To: mailing list commits@climate.apache.org Received: (qmail 4532 invoked by uid 99); 4 Jun 2013 21:29:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 21:29:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 21:29:01 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 753AD23889E2; Tue, 4 Jun 2013 21:28:42 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1489624 - /incubator/climate/trunk/rcmet/src/main/ui/app/js/controllers.js Date: Tue, 04 Jun 2013 21:28:42 -0000 To: commits@climate.incubator.apache.org From: joyce@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130604212842.753AD23889E2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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',