diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
index 9030e9a..ff4b85d 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -1260,16 +1260,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
sortedTermTextArray.sort();
}
- for (var i = 0; i <= sortedTermTextArray.length - 1; i++) {
- for(var j = 0;j<= $scope.matchedLanguageTermData.length-1;j++){
- if ($scope.matchedLanguageTermData[j]._TermText == sortedTermTextArray[i])
- {
- $scope.pinTermData.push({ "LanguageId": $scope.matchedLanguageTermData[j]._LanguageId, "TermNumber": $scope.matchedLanguageTermData[j]._TermNumber, "TermTxt": $scope.matchedLanguageTermData[j]._TermText });
- break;
- }
- }
- }
-
+
for (var i = 0; i <= sortedTermTextArray.length - 1; i++) {
for (var j = 0; j <= $scope.matchedLanguageTermData.length - 1; j++) {
if ($scope.matchedLanguageTermData[j]._TermText == sortedTermTextArray[i]) {
@@ -1343,14 +1334,16 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$rootScope.refreshTermListOnAASystemSelection = function (bodySystemId) {
- $('#termList').empty();
+
$rootScope.bodySystemSeletedId = bodySystemId;
$('#termList').empty();
var bodySystemName = $("#AABodySystems #" + bodySystemId).val();
if (bodySystemName == "All") {
for (var j = 0; j <= $scope.pinTermData.length - 1; j++) {
-
+ var $selectedOptions = $('').appendTo("#termList")
+
$compile($selectedOptions)($scope);
+
}
$("#totalTerms").empty();
$("#totalTerms").html("" + $("#termList option").length + " Structures");