diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index bcc3edf..9e83265 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -2642,26 +2642,46 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$scope.LayerChangeOnMouseUpDown = function (e) {
//'x' button is displaying inside the input box in IE browser.
-
+
if (e.currentTarget.id == "incrmntVal") {
+ //Dissectible Anatomy > Inappropriate Text in Layer Input box.
+ if ($("#txtlayerNumber").val() == '') {
+ var layerInputVal = 0;
- var layerInputVal = $("#txtlayerNumber").val();
- if (layerInputVal != $rootScope.totalLayers) {
- var layerInputValInc = parseInt(layerInputVal) + 1;
+ var layerInputValInc = parseInt(layerInputVal);
$scope.layerNumber = parseInt(layerInputValInc);
$("#txtlayerNumber").val($scope.layerNumber);
+
+ }
+ else {
+ var layerInputVal = $("#txtlayerNumber").val();
+ if (layerInputVal != $rootScope.totalLayers) {
+ var layerInputValInc = parseInt(layerInputVal) + 1;
+ $scope.layerNumber = parseInt(layerInputValInc);
+ $("#txtlayerNumber").val($scope.layerNumber);
+ }
+
}
}
else {
- var layerInputVal = $("#txtlayerNumber").val();
- if (layerInputVal > 0) {
- var layerInputValDec = parseInt(layerInputVal) - 1;
+ //Dissectible Anatomy > Inappropriate Text in Layer Input box.
+ if ($("#txtlayerNumber").val() == '') {
+ var layerInputVal = 0;
+ var layerInputValDec = parseInt(layerInputVal);
$scope.layerNumber = parseInt(layerInputValDec);
$("#txtlayerNumber").val($scope.layerNumber);
- }
+ }
+ else {
+ var layerInputVal = $("#txtlayerNumber").val();
+ if (layerInputVal > 0) {
+ var layerInputValDec = parseInt(layerInputVal) - 1;
+ $scope.layerNumber = parseInt(layerInputValDec);
+ $("#txtlayerNumber").val($scope.layerNumber);
+ }
+ }
}
$scope.LayerChange();