diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index 90f0eb2..456d332 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -8293,13 +8293,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
}
$scope.LayerChangeBasedOnKeyPressed = function (e) {
-
+ // Dissectible Anatomy > Should not display blank page if no layer is selected.
if (e.keyCode == 13) {
+ if ($("#txtlayerNumber").val() == '')
+ {
+ $scope.layerNumber = 0;
+ }
+
$scope.LayerChange();
+
}
// 'x' button is displaying inside the input box in IE browser.
- if (e.which == 38) {
+ if (e.keyCode == 38) {
var layerInputVal = $("#txtlayerNumber").val();
@@ -8313,7 +8319,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
}
// 'x' button is displaying inside the input box in IE browser.
- if (e.which == 40) {
+ if (e.keyCode == 40) {
var layerInputVal = $("#txtlayerNumber").val();
if (layerInputVal > 0) {
var layerInputValDec = parseInt(layerInputVal) - 1;