Commit 005bac88720a0c1d3f55ec81de64e8597c28c2d8

Authored by Mitali Srivastava
1 parent 795a933c

Bug #5775:Product code is displaying while clicking on go button.

Bug #6656: Disectibel Anatomy > Modesty setting doesn't work correctly
Bug #6697: Dissectible Anatomy > Gender doesn't change after changing the Skin Tone
Bug #6591: Dissectible Anatomy > Correct the height of the search drop down box
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -440,6 +440,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
440 440  
441 441 $scope.loadSearchDataForBodyView();
442 442  
  443 + $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle");
  444 +
443 445 //2.
444 446  
445 447 console.log('currentBodyViewId just before sending: ' + currentBodyViewId);
... ... @@ -456,7 +458,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
456 458  
457 459 angular.element(document).ready(function () {
458 460  
459   -
460 461 })
461 462  
462 463  
... ... @@ -5239,6 +5240,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
5239 5240 canDiv.innerHTML = '';
5240 5241 }
5241 5242 $scope.CalculateImageCordinates($rootScope.viewOrientationId);
  5243 + $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle");
5242 5244 },
5243 5245 function (error) {
5244 5246 // handle errors here
... ... @@ -5282,6 +5284,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
5282 5284 //2. load corresponding navigator man
5283 5285 $scope.loadSelectedBodyViewNavigator($rootScope.voId);
5284 5286  
  5287 + //3.Change the popup title next to search
  5288 + $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle");
  5289 +
5285 5290 };
5286 5291  
5287 5292  
... ... @@ -5400,10 +5405,18 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
5400 5405 // $scope.layerNumber = 0;
5401 5406 // debugger;
5402 5407  
5403   - $scope.loadSelectedBodyView($scope.ReloadBodyViewId);
  5408 + console.log('reloadDABodyViewEvent ' + $scope.ReloadBodyViewId);
  5409 +
  5410 + if ($rootScope.isSettingEventAlredayDispachted == true) {
5404 5411  
5405   - $scope.loadSelectedBodyViewNavigator($scope.ReloadBodyViewId);
  5412 + $scope.loadSelectedBodyView($scope.ReloadBodyViewId);
5406 5413  
  5414 + $scope.loadSelectedBodyViewNavigator($scope.ReloadBodyViewId);
  5415 +
  5416 + $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle");
  5417 +
  5418 + $rootScope.isSettingEventAlredayDispachted = false;
  5419 + }
5407 5420  
5408 5421 })
5409 5422  
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -456,12 +456,14 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
456 456  
457 457 //1.
458 458 if (typeof (setting.ethnicity) !== "undefined" && setting.ethnicity !== null) {
  459 + $rootScope.ChangeEthnicity(setting, setting.ethnicity);
459 460 $rootScope.globalSetting.ethnicity = setting.ethnicity;
460   - $rootScope.setEthncitySettings($rootScope.globalSetting.ethnicity);
  461 + //$rootScope.setEthncitySettings($rootScope.globalSetting.ethnicity);
461 462 }
462 463 if (typeof (setting.modesty) !== "undefined" && setting.modesty !== null) {
  464 + $rootScope.ChangeEthnicity(setting, setting.ethnicity);
463 465 $rootScope.globalSetting.modesty = setting.modesty;
464   - $rootScope.setModestySettings($rootScope.globalSetting.modesty);
  466 + //$rootScope.setModestySettings($rootScope.globalSetting.modesty);
465 467 }
466 468  
467 469 //2.
... ... @@ -488,6 +490,7 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
488 490 if ($rootScope.openViews.length > 0) {
489 491 var openViewLen = $rootScope.openViews.length;
490 492 var currentOpenViewId = $rootScope.openViews[openViewLen - 1].BodyViewId;
  493 + $rootScope.isSettingEventAlredayDispachted = true;
491 494 $rootScope.$broadcast('reloadDABodyViewEvent', { reloadDABodyViewId: currentOpenViewId });
492 495 }
493 496 else {
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
... ... @@ -201,7 +201,8 @@
201 201  
202 202 <div id="backdrop" ng-show="IsSearchVisible">
203 203 <div class="col-sm-12 col-xs-12 col-md-12 col-lg-12 pull-left">
204   - <ul id="termlistfilter" class="form-control dropdown-menu" style="height:100px;width:100%;overflow-y:scroll;position:absolute;display:none;z-index:1000;">
  204 + <!--#Bug 6591-->
  205 + <ul id="termlistfilter" class="form-control dropdown-menu" style="height:90px;width:100%;overflow-y:scroll;position:absolute;display:none;z-index:1000;">
205 206 <li ng-repeat="item in VocabTermTxt| filter:{ _TermText: searchFilter}">
206 207 <a id="{{item._ActualTermNumber}}" href="" ng-click="jumpToTerm($event)">{{item._TermText}}</a>
207 208 </li>
... ...