diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index 9d20132..853f5f5 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -621,6 +621,22 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
}
}
+ //call watch on '$scope.VocabTermTxt and compile
and append to on first time load
+ $scope.$watch('$scope.VocabTermTxt', function (newValue, oldValue, scope) {
+
+ //This is added as the $scope.VocabTermTxt can change while changing view also the li elements need to be removed
+ //Remove the list and then Repopulate
+ $('#searchListDiv').empty()
+ //Delay compile of ul li so that the remove of li is completed.
+ $timeout(function () {
+ var $e2 = $('').appendTo('#searchListDiv')
+ $compile($e2)($scope);
+ }, 500);
+
+ }, true);
+
}
$scope.loadBodyViewData = function (currentVoid) {
@@ -6570,7 +6586,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
// $rootScope.isHighlightBodyByBodySystem = false;
-
+ //Remove the Search list and then Repopulate it on change of Gender
+ $('#searchListDiv').empty()
$rootScope.isGenderChnage = true;
@@ -6795,7 +6812,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
// $rootScope.isHighlightBodyByBodySystem = false;
-
+ //Remove the search list and then Repopulate it on change of View
+ $('#searchListDiv').empty()
if ($rootScope.openViews.length > 0) {
$rootScope.openViews.splice($rootScope.openViews.length - 1);
@@ -8169,6 +8187,21 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
}
}
+ $scope.resetSearchListView = function () {
+
+ //Remove the list and then Repopulate it on change of $scope.searchFilter
+ $('#searchListDiv').empty()
+ // added the timeout to delay the compile of ul li
+ $timeout(function () {
+ var $e2 = $('').appendTo('#searchListDiv')
+ $compile($e2)($scope);
+ }, 500);
+
+
+ }
+
}]
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
index 06957e8..224e374 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
+++ b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html
@@ -280,17 +280,16 @@