Commit ce674f5c6cb2946edc334602be44d372ad22d5ca
1 parent
bcb022ff
Defect Fix:
Search box is disappeared on term selection.
Showing
2 changed files
with
6 additions
and
8 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -4966,14 +4966,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
4966 | 4966 | |
4967 | 4967 | } |
4968 | 4968 | |
4969 | - $scope.jumpToTerm = function (actualtermno, termtext) { | |
4970 | - $scope.searchFilter = termtext; | |
4971 | - //alert(actualtermno + " " + termtext); | |
4969 | + $scope.jumpToTerm = function (event) { | |
4970 | + $scope.searchFilter = event.currentTarget.innerHTML; | |
4971 | + $scope.HighlightBodyOnListManagerSelection(event); | |
4972 | 4972 | |
4973 | 4973 | $scope.IsSearchVisible = false; |
4974 | 4974 | |
4975 | - $timeout(function () { $scope.HighlightBodyByTermList(systemMatchedTermList) }, 100); | |
4976 | - | |
4977 | 4975 | } |
4978 | 4976 | |
4979 | 4977 | //list manager | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
... | ... | @@ -183,9 +183,9 @@ |
183 | 183 | |
184 | 184 | <div id="backdrop" ng-show="IsSearchVisible"> |
185 | 185 | <div class="col-sm-12 col-xs-12 col-md-12 col-lg-12 pull-left"> |
186 | - <ul id="termlistfilter" class="form-control dropdown-menu" style="height:100px;width:100%;overflow-y:scroll;position:absolute;display:none"> | |
187 | - <li ng-repeat="item in VocabTermTxt| filter:{ _TermText: searchFilter}" id="{{item._ActualTermNumber}}" ng-click="HighlightBodyOnListManagerSelection($event)"> | |
188 | - <a ng-click=" jumptoterm(item._actualtermnumber,item._termtext)">{{item._TermText}}</a> | |
186 | + <ul id="termlistfilter" class="form-control dropdown-menu" style="height:100px;width:100%;overflow-y:scroll;position:absolute;display:none;z-index:1000;"> | |
187 | + <li ng-repeat="item in VocabTermTxt| filter:{ _TermText: searchFilter}"> | |
188 | + <a id="{{item._ActualTermNumber}}" href="" ng-click="jumpToTerm($event)">{{item._TermText}}</a> | |
189 | 189 | </li> |
190 | 190 | </ul> |
191 | 191 | </div> | ... | ... |