Commit d521da02cbc064815d8be5336ba91adea7b92b13
1 parent
08852b21
Dissectible Anatomy > Should not display blank page if no layer is selected.
Showing
1 changed file
with
9 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -8293,13 +8293,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
8293 | 8293 | } |
8294 | 8294 | |
8295 | 8295 | $scope.LayerChangeBasedOnKeyPressed = function (e) { |
8296 | - | |
8296 | + // Dissectible Anatomy > Should not display blank page if no layer is selected. | |
8297 | 8297 | if (e.keyCode == 13) { |
8298 | + if ($("#txtlayerNumber").val() == '') | |
8299 | + { | |
8300 | + $scope.layerNumber = 0; | |
8301 | + } | |
8302 | + | |
8298 | 8303 | $scope.LayerChange(); |
8304 | + | |
8299 | 8305 | } |
8300 | 8306 | |
8301 | 8307 | // 'x' button is displaying inside the input box in IE browser. |
8302 | - if (e.which == 38) { | |
8308 | + if (e.keyCode == 38) { | |
8303 | 8309 | |
8304 | 8310 | |
8305 | 8311 | var layerInputVal = $("#txtlayerNumber").val(); |
... | ... | @@ -8313,7 +8319,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
8313 | 8319 | } |
8314 | 8320 | |
8315 | 8321 | // 'x' button is displaying inside the input box in IE browser. |
8316 | - if (e.which == 40) { | |
8322 | + if (e.keyCode == 40) { | |
8317 | 8323 | var layerInputVal = $("#txtlayerNumber").val(); |
8318 | 8324 | if (layerInputVal > 0) { |
8319 | 8325 | var layerInputValDec = parseInt(layerInputVal) - 1; | ... | ... |