From d521da02cbc064815d8be5336ba91adea7b92b13 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 6 Oct 2016 11:38:32 +0530 Subject: [PATCH] Dissectible Anatomy > Should not display blank page if no layer is selected. --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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; -- libgit2 0.21.4