diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index 0205e07..8d2af9f 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -343,8 +343,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
//get the DA body view list based on selected gender
$scope.getDAViewList = function ($event) {
- var windowviewid=$rootScope.MULTI_VIEW_ID;
-
+ var windowviewid = $rootScope.MULTI_VIEW_ID;
+
if ($('#MainImage') != null) {
$('#MainImage').remove();
}
@@ -352,10 +352,20 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
//for default load
if ($event == null || $event == undefined) {
// default set male
- $scope.SetwindowStoreData(windowviewid,'genderId','Male');
+
+ var currentGenderValue = $rootScope.getLocalStorageValue("currentGenderValue");
+ if (typeof (currentGenderValue) !== "undefined" && currentGenderValue !== null) {
+ $scope.SetwindowStoreData(windowviewid, 'genderId', currentGenderValue);
+ }
+ else
+ {
+ $scope.SetwindowStoreData(windowviewid, 'genderId', 'Male');
+ localStorage.setItem("currentGenderValue", 'Male');
+ }
}
else {
- $scope.SetwindowStoreData(windowviewid,'genderId',$event.currentTarget.id);
+ $scope.SetwindowStoreData(windowviewid, 'genderId', $event.currentTarget.id);
+ localStorage.setItem("currentGenderValue", $event.currentTarget.id);
}
var selectedGender = $scope.GetwindowStoreData(windowviewid,'genderId');
@@ -8948,7 +8958,11 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
$rootScope.isLoading = true;
$('#spinner').css('visibility', 'visible');
- //3.
+
+ //3. update gender local storage
+ if (!$rootScope.isCallFromOtherModule) {
+ localStorage.setItem("currentGenderValue", 'Male');
+ }
$scope.loadSelectedBodyView(currentBodyViewId, windowviewid);
@@ -8985,7 +8999,12 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
$rootScope.isLoading = true;
$('#spinner').css('visibility', 'visible');
- //3.
+
+ //3. update gender local storage
+ if (!$rootScope.isCallFromOtherModule) {
+ localStorage.setItem("currentGenderValue", 'Female');
+ }
+
$scope.loadSelectedBodyView(currentBodyViewId, windowviewid);