Commit f67b5c5f4bfa231e299207fd65119327bb449d2a
1 parent
04018811
storing currentBodyViewId" in localstorage. In this bug the bodyViewId was t…
…aken the previous one.
Showing
1 changed file
with
6 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -5777,7 +5777,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5777 | 5777 | |
5778 | 5778 | |
5779 | 5779 | $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.currentLayerNumber)); |
5780 | - $("#txtlayerNumber").val(parseInt($scope.currentLayerNumber)); | |
5780 | + if ($scope.isGenderChnage || $rootScope.isViewChange) { | |
5781 | + $("#txtlayerNumber").val(parseInt(0)); | |
5782 | + } | |
5783 | + else | |
5784 | + $("#txtlayerNumber").val(parseInt($scope.currentLayerNumber)); | |
5781 | 5785 | |
5782 | 5786 | |
5783 | 5787 | if (document.getElementById('tempCanvas') != null) { |
... | ... | @@ -7192,6 +7196,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
7192 | 7196 | } |
7193 | 7197 | $('#daImagePanel')[0].childNodes[0].childNodes[0].innerHTML = localStorage.getItem("genderId") + " " + event.currentTarget.title; |
7194 | 7198 | localStorage.setItem("currentViewTitle", localStorage.getItem("genderId") + " " + event.currentTarget.title); |
7199 | + localStorage.setItem("currentBodyViewId", selectedViewId); | |
7195 | 7200 | |
7196 | 7201 | |
7197 | 7202 | $rootScope.openViews.push( | ... | ... |