Commit 126b78ef97d5f416c4662c76a54193790a371756
1 parent
e773e07e
dispatching event from gender Switch too
Showing
2 changed files
with
5 additions
and
7 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -5602,7 +5602,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5602 | 5602 | } |
5603 | 5603 | |
5604 | 5604 | |
5605 | - $scope.OnGenderChange = function (gender) { | |
5605 | + $scope.OnGenderChange = function (event) { | |
5606 | 5606 | |
5607 | 5607 | |
5608 | 5608 | |
... | ... | @@ -5621,8 +5621,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
5621 | 5621 | |
5622 | 5622 | // $rootScope.isHighlightBodyByBodySystem = false; |
5623 | 5623 | |
5624 | - | |
5625 | - | |
5626 | 5624 | $rootScope.isLoading = true; |
5627 | 5625 | $('#spinner').css('visibility', 'visible'); |
5628 | 5626 | |
... | ... | @@ -7889,12 +7887,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
7889 | 7887 | ); |
7890 | 7888 | |
7891 | 7889 | |
7892 | -function OnGenderChange(gender) { | |
7890 | +function OnGenderChange(event) { | |
7893 | 7891 | |
7894 | 7892 | console.log('gender chnaged is called outside '); |
7895 | 7893 | var scope = angular.element(document.getElementById("daView")).scope(); |
7896 | 7894 | scope.$apply(function () { |
7897 | - scope.OnGenderChange(gender); | |
7895 | + scope.OnGenderChange(event); | |
7898 | 7896 | }); |
7899 | 7897 | } |
7900 | 7898 | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
... | ... | @@ -208,12 +208,12 @@ |
208 | 208 | <ul class="dropdown-menu" aria-labelledby="dropdownMenu3"> |
209 | 209 | <li ng-class="male"> |
210 | 210 | <!--<button type="button" id="btnMale" onclick="OnGenderChange('Male')" class="btn btn-link" >Male</button>--> |
211 | - <a href="#" title="Male" onclick="OnGenderChange('Male')">Male</a> | |
211 | + <a href="#" title="Male" onclick="OnGenderChange(event)">Male</a> | |
212 | 212 | </li> |
213 | 213 | <li ng-class="female"> |
214 | 214 | |
215 | 215 | <!--<button type="button" id="btnFemale" onclick="OnGenderChange('Female')" class="btn btn-link">Female</button>--> |
216 | - <a href="#" title="Female" onclick="OnGenderChange('Female')">Female</a> | |
216 | + <a href="#" title="Female" onclick="OnGenderChange(event)">Female</a> | |
217 | 217 | |
218 | 218 | <!--<a href="javascript:void(0)" title="Male" ng-click="OnGenderChange($event)">Male</a></li> |
219 | 219 | <li ng-class="female"><a href="javascript:void(0)" title="Female" ng-click="OnGenderChange($event)">Female</a></li>--> | ... | ... |