diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 1fa8900..3357f9a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -639,13 +639,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //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() + 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); @@ -7543,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'); @@ -7577,7 +7582,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } } - + }); 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 224e374..f2f12bb 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html @@ -280,30 +280,17 @@