Commit b1a6d899d403372199891fd55277ff7375ac626b
1 parent
1863c1d2
fixed
Refs: #4964
Showing
1 changed file
with
2 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -1766,8 +1766,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1766 | 1766 | if (parseInt($('#txtlayerNumber').val()) > (dataLength - 1)) { |
1767 | 1767 | $('#txtlayerNumber').val(dataLength - 1); |
1768 | 1768 | $scope.currentLayerNumber = parseInt(dataLength - 1); |
1769 | - // alert($scope.currentLayerNumber); | |
1770 | - // $('#layerChangeSlider').slider("option", "value", $scope.currentLayerNumber); | |
1769 | + $scope.layerNumber = parseInt(dataLength - 1); | |
1771 | 1770 | } |
1772 | 1771 | else |
1773 | 1772 | $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); |
... | ... | @@ -1799,7 +1798,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
1799 | 1798 | |
1800 | 1799 | |
1801 | 1800 | //} |
1802 | - | |
1801 | + $('#layerChangeSlider').slider("option", "value", parseInt($scope.totalLayers) - parseInt($scope.layerNumber)); | |
1803 | 1802 | } |
1804 | 1803 | |
1805 | 1804 | $scope.DisableProgressBar = function () { | ... | ... |