Commit af97f7e0d6dd946accbb951ecf221fc315de0db5

Authored by unknown
1 parent e1d71dd2

Commit changes for issue Ref #4965

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -1678,7 +1678,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1678 1678 }
1679 1679  
1680 1680 else {
1681   - $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val());
  1681 + // Dated:13-07-2016 Issue #4965 : The layer number should not extend beyond its level through layer text box.
  1682 + var dataLength = $scope.BodyLayerData.Layers.DataLayer.length;
  1683 + if (parseInt($('#txtlayerNumber').val()) > (dataLength-1)){
  1684 + $('#txtlayerNumber').val(dataLength - 1);
  1685 + $scope.currentLayerNumber = parseInt(dataLength - 1);}
  1686 + else
  1687 + $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val());
  1688 +
1682 1689  
1683 1690 $rootScope.isLoading = true;
1684 1691 $('#spinner').css('visibility', 'visible');
... ...