'
+ var $el = $('
').appendTo('#grid-view');
@@ -547,7 +489,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.searchAAListViewData.push(
{
- "_id": value._id,
+ "_Id": value._Id,
"_ImageId": value._ImageId,
"_Title": value._Title,
"_ImageName": value._contentImage,
@@ -559,29 +501,28 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
//"$$hashKey": value._Summary
});
-
+ console.log($scope.searchAAListViewData);
+ if ($('#searchItem').length > 0)
+ $('#searchItem').remove();
}
-
-
});
- //Show Error Message in case of gridview if no data is found
+ //Show Error Message in case of gridview/ ListView [if no data is found]
if ($scope.searchAAListViewData.length == 0) {
-
var $el = $('
No illustration found for the selected search criteria!
').appendTo('#grid-view');
$compile($el)($scope);
$('table > #ListViewDiv > #searchItem').remove();
$('#ListViewDiv').append('
No illustration found for the selected search criteria! ');
}
- console.log(JSON.stringify(result, null, 4));
+ //console.log(JSON.stringify(result, null, 4));
+ console.log('SearchAAListViewData--' + $scope.searchAAListViewData);
},
function (error) {
// handle errors here
console.log(' error: ' + error.statusText);
}
)
-
}
$scope.Reset = function (moduleId, query) {
@@ -605,6 +546,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$('#ListViewDiv').scrollTop(0);
+ if ($('#demoView').length > 0)
+ $('#demoView').remove();
// $scope.HideListViewDiv();
$scope.filterstring = false;
@@ -618,7 +561,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.showSelectedSystemPins = function (event) {
-
var bodySystemListObj = document.getElementById("bodySystemList").getElementsByTagName("a");
var bodySystemListlength = bodySystemListObj.length;
for (var i = 0; i < bodySystemListlength; i++) {
@@ -1251,7 +1193,6 @@ 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]) {
@@ -1263,7 +1204,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.$watch('$scope.pinTermData', function (newValue, oldValue, scope) {
+
if (($('#termlistfilter').html() != ""))
+
$('#termlistfilter').empty();
if ($scope.pinTermData.length > 0) {
$timeout(function () {
@@ -1303,7 +1246,11 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.$on('listManagerEvent', function (event, data) {
$("#viewName").empty();
- $("#viewName").append("
" + $rootScope.listArray[0].text + " ");
+
+ var currentView = $rootScope.getLocalStorageValue("currentViewTitle");
+ var viewNmeHtml = '
' + currentView + ' '
+ $('#viewName').append(viewNmeHtml);
+ //$("#viewName").append("
" + $rootScope.listArray[0].text + " ");
$rootScope.isLoading = false;
$('#spinner').css('visibility', 'hidden');
@@ -1324,7 +1271,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$rootScope.refreshTermListOnAASystemSelection = function (bodySystemId) {
-
$rootScope.bodySystemSeletedId = bodySystemId;
$('#termList').empty();
var bodySystemName = $("#AABodySystems #" + bodySystemId).val();
@@ -1333,7 +1279,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
var $selectedOptions = $('
' + $scope.pinTermData[j].TermTxt + ' ').appendTo("#termList")
$compile($selectedOptions)($scope);
-
}
$("#totalTerms").empty();
$("#totalTerms").html("
" + $("#termList option").length + " Structures ");
@@ -1430,6 +1375,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.showAllPinsAfterHide = function (event) {
+
$rootScope.isLoading = true;
$('#spinner').css('visibility', 'visible');
@@ -1459,7 +1405,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$scope.showSelectedPins = function () {
-
$rootScope.isLoading = true;
$('#spinner').css('visibility', 'visible');
@@ -1495,6 +1440,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
}
}
+
};
@@ -1515,7 +1461,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
var pinName = 'Pin_' + value1.id;
var pinArcName = 'PinArc_' + value1.id;
-
$('#aaDetailViewCanvas').setLayer(pinName, {
visible: true // set to true instead to show the layer again
}).drawLayers();
@@ -1523,8 +1468,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$('#aaDetailViewCanvas').setLayer(pinArcName, {
visible: true // set to true instead to show the layer again
}).drawLayers();
-
-
// }
})
@@ -1540,10 +1483,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$('#aaDetailViewCanvas').setLayer(pinArcName, {
visible: false // set to true instead to show the layer again
}).drawLayers();
-
})
-
}
else {
@@ -1667,7 +1608,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$("#" + $rootScope.annotationArray[i].speechBuubleId).css("display", "none");
$("#" + $rootScope.annotationArray[i].speechBubbleLineId).css("display", "none");
}
-
}
else {
$rootScope.isShowHideButtonClicked = true;
@@ -1680,10 +1620,8 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
$("#comment-box").addClass("btn-black");
}
-
}
$scope.activePinOnLayerChange = function () {
-
for (var i = 0; i <= $scope.activePinArray.length - 1; i++) {
var radialAfterClick = $('#aaDetailViewCanvas').createGradient({
x1: 50, y1: 50,
@@ -1700,7 +1638,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
}
}
-
$scope.activePinOnSliderChange = function () {
if ($scope.activePinArray.length == 1) {
for (var i = 0; i <= $scope.allPinDataArray.length - 1; i++) {
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html
index 30e034f..3999df1 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html
+++ b/400-SOURCECODE/AIAHTML5.Web/app/views/tile-view.html
@@ -1,4 +1,4 @@
-
+
@@ -55,8 +55,8 @@
Search
- Show All
-
+ Show All
+
@@ -96,31 +96,113 @@
-
+
+
+
+
+
+
+
+
+
+ Title
+ Region
+ System
+ View
+ Type
+
+
+
+
+
+
+ {{val._Title}}
+
+
+ {{val._BodyRegion}}
+
+
+ {{val._BodySystem}}
+
+
+ {{val._ViewOrientation}}
+
+
+ {{val._ImageType}}
+
+
+
+
+
+
+
+ {{item._Title}}
+
+
+ {{item._BodyRegion}}
+
+
+ {{item._BodySystem}}
+
+
+ {{item._ViewOrientation}}
+
+
+ {{item._ImageType}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+