diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
index 23e1263..5c7be29 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -33,7 +33,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
selectedorientation: '',
selectedimagetype: '',
};
- //$rootScope.isListViewRowClicked = false;
+
$scope.showTabButton = true;
$scope.isListViewDataLoaded = true;
@@ -1197,8 +1197,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
for (var j = 0; j < $scope.pinTermData.length; j++) {
var $el = $('
' + $scope.pinTermData[j].TermTxt + '').appendTo('#termlistfilter')
$compile($el)($scope);
- var $selectOptions = $('').appendTo("#termList")
- $compile($selectOptions)($scope);
+ var $selectedOptions = $('').appendTo("#termList")
+ $compile($selectedOptions)($scope);
$("#bodySystems").empty();
$("#bodySystemList li a").each(function (key, value) {
var $systemOptions = $('').appendTo("#bodySystems")
@@ -1232,12 +1232,12 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$scope.refreshTermListOnSystemSelection = function (bodySystemId) {
- var bodySystemText = $("#bodySystems #" + bodySystemId).val();
- alert(bodySystemText);
- if (bodySystemText == "All") {
+ var bodySystemName = $("#bodySystems #" + bodySystemId).val();
+
+ if (bodySystemName == "All") {
for (var j = 0; j <= $scope.pinTermData.length - 1; j++) {
- var $selectOptions = $('').appendTo("#termList")
- $compile($selectOptions)($scope);
+ var $selectedOptions = $('').appendTo("#termList")
+ $compile($selectedOptions)($scope);
}
}
else {
@@ -1255,13 +1255,13 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$rootScope.bodySystemTermArray.push({ "termNumbr": result.PinTermData.TermData[key]._TermNumber, "text": result.PinTermData.TermData[key]._TermText, "language": result.PinTermData.TermData[key]._LanguageId });
});
for (var i = 0; i <= $scope.aaPinData.length - 1; i++) {
- if ($scope.aaPinData[i]._BodySystemName.toLowerCase() == bodySystemText.toLowerCase()) {
+ if ($scope.aaPinData[i]._BodySystemName.toLowerCase() == bodySystemName.toLowerCase()) {
for (var j = 0 ; j <= $rootScope.bodySystemTermArray.length - 1; j++) {
if ($scope.aaPinData[i]._TermId == $rootScope.bodySystemTermArray[j].termNumbr) {
if ($rootScope.bodySystemTermArray[j].language == "1") {
console.log($rootScope.bodySystemTermArray[j].text);
- var $selectOptions = $('').appendTo("#termList")
- $compile($selectOptions)($scope);
+ var $selectedOptions = $('').appendTo("#termList")
+ $compile($selectedOptions)($scope);
}
}
}