diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index 119a4f5..3357f9a 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -634,6 +634,24 @@ 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
+ if ($('#searchListDiv').html()!="")
+ $('#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) {
@@ -6562,7 +6580,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;
@@ -6791,7 +6810,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);
@@ -7525,7 +7545,10 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
console.log('listManagerEvent');
var systemList = $rootScope.CommonData.DACommonData.BodySystems.Item;
- $('#bodySystems').empty();
+ var optionsLength = $('#bodySystems option').length;//.children('option').length;
+ console.log('optionsLength= ' + optionsLength)
+ if (optionsLength>0)
+ $('#bodySystems').empty();
var $all = $('').appendTo('#bodySystems');
@@ -7559,7 +7582,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
}
}
-
+
});
@@ -8171,6 +8194,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 = $('