Commit 9f4465d65be05d6723fbe1f9f3139cc204ea8ace
Merge branch 'Crash' into Develop
Showing
2 changed files
with
95 additions
and
56 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -45,7 +45,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -45,7 +45,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
45 | $scope.doHighlightOrExtract = false; | 45 | $scope.doHighlightOrExtract = false; |
46 | $scope.isEligibleForHighlightBodyByTermList = false; | 46 | $scope.isEligibleForHighlightBodyByTermList = false; |
47 | 47 | ||
48 | - // $scope.AnteriorView = "active"; | 48 | + // $scope.AnteriorView = "active"; |
49 | 49 | ||
50 | $scope.zoomInOut = 75; | 50 | $scope.zoomInOut = 75; |
51 | $scope.speechBubbleCounter = 0; | 51 | $scope.speechBubbleCounter = 0; |
@@ -943,17 +943,17 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -943,17 +943,17 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
943 | var isiOSSafari = (navigator.userAgent.match(/iPad/i)) ? true : false; | 943 | var isiOSSafari = (navigator.userAgent.match(/iPad/i)) ? true : false; |
944 | 944 | ||
945 | //set scrollbars on canvas and hide loading label | 945 | //set scrollbars on canvas and hide loading label |
946 | - $('#daLoaderLabel').css('visibility', 'hidden') | 946 | + $('#daLoaderLabel').css('visibility', 'hidden') |
947 | 947 | ||
948 | 948 | ||
949 | - $('#canvasDiv').css('overflow', 'scroll') | ||
950 | - if (isiOSSafari) { | ||
951 | - $('#canvasDiv').scrollLeft($('#canvasDiv').width() + 150) | 949 | + $('#canvasDiv').css('overflow', 'scroll') |
950 | + if (isiOSSafari) { | ||
951 | + $('#canvasDiv').scrollLeft($('#canvasDiv').width() + 150) | ||
952 | 952 | ||
953 | - } | ||
954 | - else { | ||
955 | - $('#canvasDiv').scrollLeft($('#canvasDiv').width() / 2) | ||
956 | - } | 953 | + } |
954 | + else { | ||
955 | + $('#canvasDiv').scrollLeft($('#canvasDiv').width() / 2) | ||
956 | + } | ||
957 | 957 | ||
958 | 958 | ||
959 | // $('#canvasDiv').scrollLeft($scope.imageHorizontlScrollPosition) | 959 | // $('#canvasDiv').scrollLeft($scope.imageHorizontlScrollPosition) |
@@ -1420,16 +1420,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -1420,16 +1420,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
1420 | 1420 | ||
1421 | 1421 | ||
1422 | if (isMaskImage == 'N') { | 1422 | if (isMaskImage == 'N') { |
1423 | - $scope.ColoredImageSRC.push( | ||
1424 | - { | ||
1425 | - "bodyRegionId": bodyRegionId, "SRC": src, | ||
1426 | - "Height": h, | ||
1427 | - "Width": w, | ||
1428 | - "x": x, | ||
1429 | - "y": y, | ||
1430 | - "haveMirror": 'true' | ||
1431 | - } | ||
1432 | - ); | 1423 | + |
1424 | + if ($scope.isLayerChangeByUpDownKey || $scope.isEnterPressed) { | ||
1425 | + $scope.ColoredImageSRC.push( | ||
1426 | + { | ||
1427 | + "bodyRegionId": bodyRegionId, "SRC": src, | ||
1428 | + "Height": h, | ||
1429 | + "Width": w, | ||
1430 | + "x": x, | ||
1431 | + "y": y, | ||
1432 | + "haveMirror": 'true' | ||
1433 | + } | ||
1434 | + ); | ||
1435 | + } | ||
1433 | 1436 | ||
1434 | // console.log('$rootScope.isListManagerSelected= ' + $rootScope.isListManagerSelected + ' length= ' + $scope.ColoredImageSRC.length) | 1437 | // console.log('$rootScope.isListManagerSelected= ' + $rootScope.isListManagerSelected + ' length= ' + $scope.ColoredImageSRC.length) |
1435 | 1438 | ||
@@ -1454,7 +1457,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -1454,7 +1457,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
1454 | 1457 | ||
1455 | if ($scope.isEligibleForHighlight == true) | 1458 | if ($scope.isEligibleForHighlight == true) |
1456 | { | 1459 | { |
1457 | - if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true))) { | 1460 | + if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) || (($rootScope.isViewChange == true) && ($rootScope.isHighLight == true))) { |
1458 | 1461 | ||
1459 | $rootScope.isLoading = false; | 1462 | $rootScope.isLoading = false; |
1460 | $('#spinner').css('visibility', 'hidden'); | 1463 | $('#spinner').css('visibility', 'hidden'); |
@@ -1734,6 +1737,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -1734,6 +1737,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
1734 | 1737 | ||
1735 | img.src = src; | 1738 | img.src = src; |
1736 | 1739 | ||
1740 | + | ||
1741 | + | ||
1737 | function start() { | 1742 | function start() { |
1738 | //debugger; | 1743 | //debugger; |
1739 | context.drawImage(img, 0, 0); | 1744 | context.drawImage(img, 0, 0); |
@@ -1743,17 +1748,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -1743,17 +1748,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
1743 | //do nothing | 1748 | //do nothing |
1744 | } | 1749 | } |
1745 | else { | 1750 | else { |
1746 | - $scope.ColoredImageSRC.push( | ||
1747 | - { | ||
1748 | - "bodyRegionId": bodyRegionId, "SRC": src, | ||
1749 | - "Height": h, | ||
1750 | - "Width": w, | ||
1751 | - "x": x, | ||
1752 | - "y": y, | ||
1753 | - "haveMirror": 'false' | ||
1754 | - } | ||
1755 | - | ||
1756 | - ); | 1751 | + if (($scope.isLayerChangeByUpDownKey) || ($scope.isEnterPressed)) { |
1752 | + $scope.ColoredImageSRC.push( | ||
1753 | + { | ||
1754 | + "bodyRegionId": bodyRegionId, "SRC": src, | ||
1755 | + "Height": h, | ||
1756 | + "Width": w, | ||
1757 | + "x": x, | ||
1758 | + "y": y, | ||
1759 | + "haveMirror": 'false' | ||
1760 | + } | ||
1761 | + | ||
1762 | + ); | ||
1763 | + } | ||
1757 | 1764 | ||
1758 | if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) { | 1765 | if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) { |
1759 | 1766 | ||
@@ -1851,10 +1858,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -1851,10 +1858,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
1851 | 1858 | ||
1852 | if ($rootScope.isListManagerSelected) { | 1859 | if ($rootScope.isListManagerSelected) { |
1853 | 1860 | ||
1854 | - multiTermList = $scope.AllTerms; | 1861 | + multiTermList = $scope.AllTerms; |
1855 | 1862 | ||
1856 | - } | ||
1857 | - else if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && ($rootScope.previousHighlightList.length > 0)) { | 1863 | + } |
1864 | + else if (($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined) && ($rootScope.previousHighlightList.length > 0)) { | ||
1858 | angular.forEach($rootScope.previousHighlightList, function (value, key) { | 1865 | angular.forEach($rootScope.previousHighlightList, function (value, key) { |
1859 | 1866 | ||
1860 | var ActualTermNo = $scope.getActualTermNumber(value); | 1867 | var ActualTermNo = $scope.getActualTermNumber(value); |
@@ -2414,10 +2421,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -2414,10 +2421,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
2414 | $scope.LayerChange = function () { | 2421 | $scope.LayerChange = function () { |
2415 | 2422 | ||
2416 | 2423 | ||
2417 | - //if listanager is visisble then close it | ||
2418 | - $rootScope.isListManagerSelected = false; | 2424 | + //if listanager is visisble then close it |
2425 | + $rootScope.isListManagerSelected = false; | ||
2419 | 2426 | ||
2420 | - $rootScope.CloseListManager(); | 2427 | + $rootScope.CloseListManager(); |
2421 | 2428 | ||
2422 | 2429 | ||
2423 | 2430 | ||
@@ -2506,6 +2513,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -2506,6 +2513,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
2506 | } | 2513 | } |
2507 | 2514 | ||
2508 | else { | 2515 | else { |
2516 | + | ||
2517 | + | ||
2509 | //1. Dated:13-07-2016 Issue #4965 : The layer number should not extend beyond its level through layer text box. | 2518 | //1. Dated:13-07-2016 Issue #4965 : The layer number should not extend beyond its level through layer text box. |
2510 | var dataLength = $rootScope.BodyLayerData.Layers.DataLayer.length; | 2519 | var dataLength = $rootScope.BodyLayerData.Layers.DataLayer.length; |
2511 | if (parseInt($('#txtlayerNumber').val()) > (dataLength - 1)) { | 2520 | if (parseInt($('#txtlayerNumber').val()) > (dataLength - 1)) { |
@@ -2516,6 +2525,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -2516,6 +2525,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
2516 | else | 2525 | else |
2517 | $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); | 2526 | $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); |
2518 | 2527 | ||
2528 | + //$scope.isMousUp(); | ||
2529 | + | ||
2530 | + //alert('$scope.currentLayerNumber'); | ||
2531 | + | ||
2519 | $rootScope.isLoading = true; | 2532 | $rootScope.isLoading = true; |
2520 | $('#spinner').css('visibility', 'visible'); | 2533 | $('#spinner').css('visibility', 'visible'); |
2521 | var canDiv = document.getElementById('canvasDiv'); | 2534 | var canDiv = document.getElementById('canvasDiv'); |
@@ -2524,6 +2537,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -2524,6 +2537,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
2524 | canDiv.innerHTML = ''; | 2537 | canDiv.innerHTML = ''; |
2525 | } | 2538 | } |
2526 | 2539 | ||
2540 | + | ||
2541 | + | ||
2527 | //2. | 2542 | //2. |
2528 | $scope.CalculateImageCordinates($rootScope.viewOrientationId); | 2543 | $scope.CalculateImageCordinates($rootScope.viewOrientationId); |
2529 | 2544 | ||
@@ -2543,6 +2558,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -2543,6 +2558,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
2543 | $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.layerNumber)); | 2558 | $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.layerNumber)); |
2544 | } | 2559 | } |
2545 | 2560 | ||
2561 | + $scope.LayerChangeOnMouseUpDown = function (e) | ||
2562 | + { | ||
2563 | + $scope.isLayerChangeByUpDownKey = true; | ||
2564 | + $scope.LayerChange(); | ||
2565 | + | ||
2566 | + } | ||
2567 | + | ||
2568 | + | ||
2546 | $scope.DisableProgressBar = function () { | 2569 | $scope.DisableProgressBar = function () { |
2547 | 2570 | ||
2548 | // alert('Disabled wait cursor is called'); | 2571 | // alert('Disabled wait cursor is called'); |
@@ -3406,8 +3429,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -3406,8 +3429,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
3406 | 3429 | ||
3407 | //if listanager is visisble then close it | 3430 | //if listanager is visisble then close it |
3408 | 3431 | ||
3409 | - $rootScope.isListManagerSelected = false; | ||
3410 | - $rootScope.CloseListManager(); | 3432 | + $rootScope.isListManagerSelected = false; |
3433 | + $rootScope.CloseListManager(); | ||
3411 | 3434 | ||
3412 | 3435 | ||
3413 | $scope.isTransparencyActivated = true; | 3436 | $scope.isTransparencyActivated = true; |
@@ -3427,6 +3450,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -3427,6 +3450,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
3427 | 3450 | ||
3428 | canvasDiv.addEventListener("mouseup", mouseUpListener) | 3451 | canvasDiv.addEventListener("mouseup", mouseUpListener) |
3429 | 3452 | ||
3453 | + | ||
3430 | } | 3454 | } |
3431 | 3455 | ||
3432 | function mouseDownListener(e) { | 3456 | function mouseDownListener(e) { |
@@ -3511,6 +3535,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -3511,6 +3535,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
3511 | // $selection.remove(); | 3535 | // $selection.remove(); |
3512 | // debugger; | 3536 | // debugger; |
3513 | 3537 | ||
3538 | + //alert('mouse up'); | ||
3539 | + console.log('MOUSE UP'); | ||
3540 | + | ||
3514 | $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); | 3541 | $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); |
3515 | $('.rectangle').remove(); | 3542 | $('.rectangle').remove(); |
3516 | 3543 | ||
@@ -3813,7 +3840,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -3813,7 +3840,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
3813 | //do nothing | 3840 | //do nothing |
3814 | } | 3841 | } |
3815 | else if (isLayerChanged) { | 3842 | else if (isLayerChanged) { |
3816 | - // debugger | 3843 | + |
3844 | + // alert('isMousUp on isLayerChanged'); | ||
3845 | + | ||
3817 | $scope.layerNumber = parseInt($('#txtlayerNumber').val()); | 3846 | $scope.layerNumber = parseInt($('#txtlayerNumber').val()); |
3818 | 3847 | ||
3819 | } | 3848 | } |
@@ -4803,7 +4832,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -4803,7 +4832,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
4803 | 4832 | ||
4804 | //if listanager is visisble then close it | 4833 | //if listanager is visisble then close it |
4805 | 4834 | ||
4806 | - // $rootScope.isListManagerSelected = false; | 4835 | + // $rootScope.isListManagerSelected = false; |
4807 | $rootScope.CloseListManager(); | 4836 | $rootScope.CloseListManager(); |
4808 | 4837 | ||
4809 | if ($rootScope.isHighLight == true) { | 4838 | if ($rootScope.isHighLight == true) { |
@@ -4864,10 +4893,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -4864,10 +4893,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
4864 | console.log('enableNormalMode is called'); | 4893 | console.log('enableNormalMode is called'); |
4865 | 4894 | ||
4866 | 4895 | ||
4867 | - // $rootScope.isHighLight = false; | 4896 | + // $rootScope.isHighLight = false; |
4868 | 4897 | ||
4869 | - //to do should not call every time | ||
4870 | - $rootScope.CloseListManager(); | 4898 | + //to do should not call every time |
4899 | + $rootScope.CloseListManager(); | ||
4871 | 4900 | ||
4872 | 4901 | ||
4873 | if ($rootScope.isNormalMode == true) { | 4902 | if ($rootScope.isNormalMode == true) { |
@@ -4928,7 +4957,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -4928,7 +4957,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
4928 | 4957 | ||
4929 | //if listanager is visisble then close it | 4958 | //if listanager is visisble then close it |
4930 | 4959 | ||
4931 | - // $rootScope.isListManagerSelected = false; | 4960 | + // $rootScope.isListManagerSelected = false; |
4932 | $rootScope.CloseListManager(); | 4961 | $rootScope.CloseListManager(); |
4933 | //1. | 4962 | //1. |
4934 | $rootScope.isLoading = true; | 4963 | $rootScope.isLoading = true; |
@@ -5213,7 +5242,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -5213,7 +5242,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
5213 | else if ($rootScope.isListManagerSelected == true) { | 5242 | else if ($rootScope.isListManagerSelected == true) { |
5214 | console.log('1. $rootScope.isExtract=true and $rootScope.isListManagerSelected == true') | 5243 | console.log('1. $rootScope.isExtract=true and $rootScope.isListManagerSelected == true') |
5215 | 5244 | ||
5216 | - $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); | 5245 | + $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); |
5217 | 5246 | ||
5218 | } | 5247 | } |
5219 | } | 5248 | } |
@@ -5376,7 +5405,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -5376,7 +5405,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
5376 | console.log('2. $rootScope.isExtract=true and $rootScope.isListManagerSelected == true') | 5405 | console.log('2. $rootScope.isExtract=true and $rootScope.isListManagerSelected == true') |
5377 | $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); | 5406 | $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); |
5378 | 5407 | ||
5379 | - } | 5408 | + } |
5380 | } | 5409 | } |
5381 | 5410 | ||
5382 | } | 5411 | } |
@@ -5458,8 +5487,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -5458,8 +5487,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
5458 | 5487 | ||
5459 | //if listanager is visisble then close it | 5488 | //if listanager is visisble then close it |
5460 | 5489 | ||
5461 | - $rootScope.isListManagerSelected = false; | ||
5462 | - $rootScope.CloseListManager(); | 5490 | + $rootScope.isListManagerSelected = false; |
5491 | + $rootScope.CloseListManager(); | ||
5463 | 5492 | ||
5464 | $rootScope.isLoading = true; | 5493 | $rootScope.isLoading = true; |
5465 | $('#spinner').css('visibility', 'visible'); | 5494 | $('#spinner').css('visibility', 'visible'); |
@@ -5778,13 +5807,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -5778,13 +5807,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
5778 | $scope.$on('reloadDABodyViewEvent', function (event, data) { | 5807 | $scope.$on('reloadDABodyViewEvent', function (event, data) { |
5779 | //console.log('reloadDABodyViewEvent'); | 5808 | //console.log('reloadDABodyViewEvent'); |
5780 | $scope.layerNumber = parseInt($('#txtlayerNumber').val()); | 5809 | $scope.layerNumber = parseInt($('#txtlayerNumber').val()); |
5781 | - //$scope.ReloadBodyViewId = data.reloadDABodyViewId; | ||
5782 | - // $scope.layerNumber = 0; | ||
5783 | - // debugger; | 5810 | + //alert('mouseUp'); |
5784 | 5811 | ||
5785 | - //console.log('reloadDABodyViewEvent ' + $scope.ReloadBodyViewId); | ||
5786 | - | ||
5787 | - //if ($rootScope.isSettingEventAlredayDispachted == true) { | 5812 | + |
5788 | 5813 | ||
5789 | $scope.loadSelectedBodyView(data.reloadDABodyViewId); | 5814 | $scope.loadSelectedBodyView(data.reloadDABodyViewId); |
5790 | 5815 | ||
@@ -5797,6 +5822,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -5797,6 +5822,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
5797 | 5822 | ||
5798 | }) | 5823 | }) |
5799 | 5824 | ||
5825 | + | ||
5826 | + | ||
5800 | $scope.loadSelectedBodyViewNavigator = function (currentBodyViewId) { | 5827 | $scope.loadSelectedBodyViewNavigator = function (currentBodyViewId) { |
5801 | 5828 | ||
5802 | //$rootScope.voId = currentBodyViewId; | 5829 | //$rootScope.voId = currentBodyViewId; |
@@ -7630,6 +7657,18 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -7630,6 +7657,18 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
7630 | 7657 | ||
7631 | } | 7658 | } |
7632 | 7659 | ||
7660 | + $scope.LayerChangeBasedOnKeyPressed = function (e) { | ||
7661 | + | ||
7662 | + if(e.keyCode==13) | ||
7663 | + { | ||
7664 | + $scope.isEnterPressed = true; | ||
7665 | + | ||
7666 | + $scope.LayerChange(); | ||
7667 | + } | ||
7668 | + | ||
7669 | + } | ||
7670 | + | ||
7671 | + | ||
7633 | 7672 | ||
7634 | }] | 7673 | }] |
7635 | 7674 |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
@@ -222,7 +222,7 @@ | @@ -222,7 +222,7 @@ | ||
222 | </div> | 222 | </div> |
223 | <div class=""> | 223 | <div class=""> |
224 | <p> | 224 | <p> |
225 | - <input type="number" id="txtlayerNumber" value="0" step="1" min="0" style="width:80px; margin:10px 0 0 15px;" ng-model="layerNumber" ng-change="LayerChange()" /> | 225 | + <input class="item" type="number" id="txtlayerNumber" value="0" step="1" min="0" style="width:80px; margin:10px 0 0 15px;" ng-model="layerNumber" ng-keydown="LayerChangeBasedOnKeyPressed($event)" ng-click="LayerChangeOnMouseUpDown($event)" /> |
226 | </p> | 226 | </p> |
227 | <div id="layerChangeSlider" style="height:140px;" class="vert_slider " ng-model="layerNumber"></div> | 227 | <div id="layerChangeSlider" style="height:140px;" class="vert_slider " ng-model="layerNumber"></div> |
228 | </div> | 228 | </div> |