Commit eece91e06ba4b9754b44f7d5b3a02c66b0b0b558
1 parent
6eb119dc
removed commenetd code.
Showing
1 changed file
with
3 additions
and
11 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -593,21 +593,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -593,21 +593,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
593 | 593 | ||
594 | $("#layerChangeSlider").slider({ | 594 | $("#layerChangeSlider").slider({ |
595 | orientation: "vertical", | 595 | orientation: "vertical", |
596 | - range: "max", // <--- needed... | 596 | + range: "max", |
597 | min: 0, | 597 | min: 0, |
598 | - // max: 100, | ||
599 | value: 0, | 598 | value: 0, |
600 | slide: function (event, ui) { | 599 | slide: function (event, ui) { |
601 | - // event.stopImmediatePropagation(); | ||
602 | - // alert('slide') | ||
603 | - // $("#txtlayerNumber").val(100 - ui.value); // basic math operation.. | ||
604 | - | ||
605 | - // $("#txtlayerNumber").val($("#layerChangeSlider").slider("value")); | ||
606 | - }, | 600 | + }, |
607 | 601 | ||
608 | stop: function (event, ui) { | 602 | stop: function (event, ui) { |
609 | - // alert('stop') | ||
610 | - | 603 | + |
611 | var la; | 604 | var la; |
612 | var rootScope = angular.element(document.getElementById("bo")).scope(); | 605 | var rootScope = angular.element(document.getElementById("bo")).scope(); |
613 | rootScope.$apply(function () { | 606 | rootScope.$apply(function () { |
@@ -619,7 +612,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -619,7 +612,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
619 | rootScope.isLoading = false; | 612 | rootScope.isLoading = false; |
620 | } | 613 | } |
621 | la = parseInt(scope.totalLayers) //- parseInt(scope.layerNumber); | 614 | la = parseInt(scope.totalLayers) //- parseInt(scope.layerNumber); |
622 | - // $('#layerChangeSlider').slider("option", "value", la - ui.value); | ||
623 | var slideVal = la - ui.value; | 615 | var slideVal = la - ui.value; |
624 | $("#txtlayerNumber").val(slideVal); | 616 | $("#txtlayerNumber").val(slideVal); |
625 | scope.layerNumber = slideVal; | 617 | scope.layerNumber = slideVal; |