Commit 4adeffe5306ba7050d9900b34fd4adf638fa53ad
1 parent
499636be
this is for the bug 13791
Showing
2 changed files
with
5 additions
and
69 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -2882,59 +2882,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
2882 | 2882 | $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.layerNumber)); |
2883 | 2883 | } |
2884 | 2884 | $rootScope.PreviouslayerNumbr = 0; |
2885 | - $scope.LayerChangeOnMouseUpDown = function (e) { | |
2886 | - //'x' button is displaying inside the input box in IE browser. | |
2887 | - | |
2888 | - if (e.currentTarget.id == "incrmntVal") { | |
2889 | - //Dissectible Anatomy > Inappropriate Text in Layer Input box. | |
2890 | - if ($("#txtlayerNumber").val() == '') { | |
2891 | - var layerInputVal = 0; | |
2892 | - | |
2893 | - var layerInputValInc = parseInt(layerInputVal); | |
2894 | - $scope.layerNumber = parseInt(layerInputValInc); | |
2895 | - $("#txtlayerNumber").val($scope.layerNumber); | |
2896 | - // $rootScope.PreviouslayerNumbr = $scope.layerNumber; | |
2897 | - | |
2898 | - } | |
2899 | - else { | |
2900 | - var layerInputVal = $("#txtlayerNumber").val(); | |
2901 | - if (layerInputVal != $rootScope.totalLayers) { | |
2902 | - var layerInputValInc = parseInt(layerInputVal) + 1; | |
2903 | - $scope.layerNumber = parseInt(layerInputValInc); | |
2904 | - $("#txtlayerNumber").val($scope.layerNumber); | |
2905 | - $rootScope.PreviouslayerNumbr = $scope.layerNumber; | |
2906 | - } | |
2907 | - | |
2908 | - } | |
2909 | - | |
2910 | - } | |
2911 | - else { | |
2912 | - | |
2913 | - //Dissectible Anatomy > Inappropriate Text in Layer Input box. | |
2914 | - if ($("#txtlayerNumber").val() == '') { | |
2915 | - var layerInputVal = 0; | |
2916 | - var layerInputValDec = parseInt(layerInputVal); | |
2917 | - $scope.layerNumber = parseInt(layerInputValDec); | |
2918 | - $("#txtlayerNumber").val($scope.layerNumber); | |
2919 | - // $rootScope.PreviouslayerNumbr = $scope.layerNumber; | |
2920 | - | |
2921 | - } | |
2922 | - else | |
2923 | - { | |
2924 | - var layerInputVal = $("#txtlayerNumber").val(); | |
2925 | - if (layerInputVal > 0) { | |
2926 | - var layerInputValDec = parseInt(layerInputVal) - 1; | |
2927 | - $scope.layerNumber = parseInt(layerInputValDec); | |
2928 | - $("#txtlayerNumber").val($scope.layerNumber); | |
2929 | - $rootScope.PreviouslayerNumbr = $scope.layerNumber; | |
2930 | - } | |
2931 | - } | |
2932 | - | |
2933 | - } | |
2934 | - $scope.LayerChange(); | |
2935 | - $rootScope.isLoading = false; | |
2936 | - $('#spinner').css('visibility', 'hidden'); | |
2937 | - } | |
2885 | + | |
2938 | 2886 | |
2939 | 2887 | |
2940 | 2888 | $scope.DisableProgressBar = function () { | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
... | ... | @@ -247,22 +247,10 @@ |
247 | 247 | |
248 | 248 | <!--'x' button is displaying inside the input box in IE browser.--> |
249 | 249 | <div style="width:80px;margin:10px 0 0 15px;display:inline-block;"> |
250 | - <div style="width: 58px; float: left;"> | |
251 | - <input type="text" class="form-control item" id="txtlayerNumber" value="0" ng-model="layerNumber" ng-keyup="LayerValueChangeBasedOnKeyUp($event)" ng-keydown="LayerChangeBasedOnKeyPressed($event)" style="height:32px;border-radius:0;"> | |
252 | - </div> | |
253 | - <div style="width: 22px; float: left;"> | |
254 | - <div style="width: 100%; float: left; height: 16px;"> | |
255 | - <button type="button" id="incrmntVal" ng-click="LayerChangeOnMouseUpDown($event)" class="btn btn-default" style="padding:0 5px;border-radius:0;font-size: 10px;vertical-align:top;"> | |
256 | - | |
257 | - <img style="width:10px;height:10px;" src="~/../content/images/DA/angle-up.png" /> | |
258 | - </button> | |
259 | - </div> | |
260 | - <div style="width: 100%; float: left; height: 16px;"> | |
261 | - <button type="button" id="deccrmntVal" ng-click="LayerChangeOnMouseUpDown($event)" class="btn btn-default" style="padding:0 5px;border-radius:0;font-size: 10px;vertical-align:top;"> | |
262 | - <img style="width:10px;height:10px;" src="~/../content/images/DA/angle-down.png" /> | |
263 | - </button> | |
264 | - </div> | |
265 | - </div> | |
250 | + | |
251 | + <input type="text" class="form-control item" id="txtlayerNumber" value="0" ng-model="layerNumber" ng-keyup="LayerValueChangeBasedOnKeyUp($event)" ng-keydown="LayerChangeBasedOnKeyPressed($event)" style="height:32px;border-radius:0;text-align:center;"> | |
252 | + | |
253 | + | |
266 | 254 | |
267 | 255 | </div> |
268 | 256 | ... | ... |