Commit c5b9000f89e04136e95405a0833b4fe985d3a626
1 parent
20b1cbe9
attribute array has different index for the value of title so taking title of that.
Showing
1 changed file
with
7 additions
and
5 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -5947,7 +5947,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5947 | 5947 | var currentBodyViewId = $scope.correspondingBodyViewIds[$rootScope.voId]; |
5948 | 5948 | |
5949 | 5949 | |
5950 | - if ((event.currentTarget.attributes[1].value == 'Male') && (localStorage.getItem("genderId") == 'Female')) { | |
5950 | + if ((event.currentTarget.title == 'Male') && (localStorage.getItem("genderId") == 'Female')) { | |
5951 | 5951 | |
5952 | 5952 | //1. |
5953 | 5953 | localStorage.setItem("genderId", 'Male'); |
... | ... | @@ -5979,7 +5979,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5979 | 5979 | |
5980 | 5980 | } |
5981 | 5981 | |
5982 | - else if ((event.currentTarget.attributes[1].value == 'Female') && (localStorage.getItem("genderId") == 'Male')) { | |
5982 | + else if ((event.currentTarget.title == 'Female') && (localStorage.getItem("genderId") == 'Male')) { | |
5983 | 5983 | |
5984 | 5984 | //1. |
5985 | 5985 | localStorage.setItem("genderId", 'Female'); |
... | ... | @@ -6163,7 +6163,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6163 | 6163 | |
6164 | 6164 | $scope.layerNumber = 0; |
6165 | 6165 | // debugger; |
6166 | - var selectedViewId = $scope.bodyViews[event.currentTarget.attributes[1].value]; | |
6166 | + //var selectedViewId = $scope.bodyViews[event.currentTarget.attributes[1].value]; | |
6167 | + var selectedViewId = $scope.bodyViews[event.currentTarget.title]; | |
6168 | + | |
6167 | 6169 | $rootScope.viewOrientationId = selectedViewId; |
6168 | 6170 | if (localStorage.getItem("genderId") == 'Male') { |
6169 | 6171 | if ($rootScope.voId != selectedViewId) { |
... | ... | @@ -6228,8 +6230,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6228 | 6230 | // $('#daImagePanel')[0].childNodes[0].childNodes[0].innerHTML = localStorage.getItem("genderId") + " " + $scope.bodyViews[event.currentTarget.attributes[1].value; |
6229 | 6231 | |
6230 | 6232 | } |
6231 | - $('#daImagePanel')[0].childNodes[0].childNodes[0].innerHTML = localStorage.getItem("genderId") + " " + event.currentTarget.attributes[1].value; | |
6232 | - localStorage.setItem("currentViewTitle", localStorage.getItem("genderId") + " " + event.currentTarget.attributes[1].value); | |
6233 | + $('#daImagePanel')[0].childNodes[0].childNodes[0].innerHTML = localStorage.getItem("genderId") + " " + event.currentTarget.title; | |
6234 | + localStorage.setItem("currentViewTitle", localStorage.getItem("genderId") + " " + event.currentTarget.title); | |
6233 | 6235 | |
6234 | 6236 | |
6235 | 6237 | $rootScope.openViews.push( | ... | ... |