climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [27/50] git commit: Drop unneeded functions/vars from ParameterSelectCtrl
Date Mon, 21 Jul 2014 13:25:03 GMT
Drop unneeded functions/vars from ParameterSelectCtrl

- A number of lat/lon slider functions/vars that are no longer used were
  still present and causing problems with the loading of the controller.


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/51030e78
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/51030e78
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/51030e78

Branch: refs/heads/master
Commit: 51030e78bf54793733093e7d99f7050c2518d0bb
Parents: 60d750b
Author: Michael Joyce <joyce@apache.org>
Authored: Thu Jul 17 07:19:26 2014 -0700
Committer: Michael Joyce <joyce@apache.org>
Committed: Thu Jul 17 07:19:26 2014 -0700

----------------------------------------------------------------------
 .../app/scripts/controllers/parameterselect.js  | 32 +-------------------
 1 file changed, 1 insertion(+), 31 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/51030e78/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
----------------------------------------------------------------------
diff --git a/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js b/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
index bbcccdc..2547b5c 100644
--- a/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
+++ b/ocw-ui/frontend-new/app/scripts/controllers/parameterselect.js
@@ -36,36 +36,6 @@ angular.module('ocwUiApp')
     $scope.latSliderVal = 0;
     $scope.lonSliderVal = 0;
 
-    $('#latSlider').slider({
-      value: 0,
-      step: 0.25,
-      min: 0.25,
-      max: 180,
-      slide: function(event, ui) {
-        $scope.updateLatSliderDisplayValue(ui.value);
-      },
-    });
-
-    $('#lonSlider').slider({
-      value: 0,
-      step: 0.25,
-      min: 0.25,
-      max: 360,
-      slide: function(event, ui) {
-        $scope.updateLonSliderDisplayValue(ui.value);
-      },
-    });
-
-    $scope.updateLatSliderDisplayValue = function(value) {
-      $scope.latSliderVal = value;
-      $scope.$apply();
-    };
-
-    $scope.updateLonSliderDisplayValue = function(value) {
-      $scope.lonSliderVal = value;
-      $scope.$apply();
-    };
-
     // Settings for jQuery datepicker directives!
     $scope.datepickerSettings = {
       changeMonth: true,
@@ -282,5 +252,5 @@ angular.module('ocwUiApp')
           } else {
               return Math.ceil(floatVal);
           }
-      }
+      };
   }]);


Mime
View raw message