Commit 75b6d0f3d7468ee7c9dae649bd0c54047a394371

Authored by Amrita Vishnoi
1 parent 30899874

Refs: #5764

The layer number should not extend beyond its level through layer text box while using transparency box.
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -3563,7 +3563,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
3563 3563 }
3564 3564 else if (isLayerChanged) {
3565 3565 // debugger
3566   - $scope.layerNumber = parseInt($('#txtlayerNumber').val());
  3566 + //Dated:22-07-2016 Issue#5764:The layer number should not extend beyond its level through layer text box while using transparency box.
  3567 + var dataLength = $scope.BodyLayerData.Layers.DataLayer.length;
  3568 + if (parseInt($('#txtlayerNumber').val()) > (dataLength - 1)) {
  3569 + $('#txtlayerNumber').val(dataLength - 1);
  3570 + $scope.layerNumber = parseInt(dataLength - 1);
  3571 + }
  3572 + else {
  3573 + $scope.layerNumber = parseInt($('#txtlayerNumber').val());
  3574 + }
3567 3575  
3568 3576 }
3569 3577 else {
... ...