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 <[email protected]> Authored: Thu Jul 17 07:19:26 2014 -0700 Committer: Michael Joyce <[email protected]> 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); } - } + }; }]);
