diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 3692656..7c89245 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -83,15 +83,54 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod $location.url('/module-item-view'); } - + $scope.openBodyView = function () { - $scope.getImgUrl = function () { + + $.jsPanel({ + id: 'daImagePanel', + selector: '.daBodyView', + theme: 'success', + currentController: 'TileViewListController', + parentSlug: 'tile-view-list', + ajax: { + url: 'app/views/aa/atlas-anatomy-detail.html' + }, + // title: localStorage.getItem("currentViewTitle"), - alert('called...') - // $scope.myImgUrl = $rootScope.OpenItemImageName; - //alert('getImgurl: ' + $scope.myImgUrl); + position: { + top: 70, + left: 1, + }, + + size: { width: $(window).outerWidth() - 10, height: $(window).outerHeight() - 110 }, + + }); + + console.log('jsPanel loaded daImagePanel exist= ' + document.getElementById('daImagePanel')) + var daBodyviewElement = angular.element(document.getElementById("aaDetailPageDiv")); + $timeout(function () { + + $compile(daBodyviewElement.contents())($scope); + + console.log('html is compiled' + document.getElementById('aaDetailPageDiv')) + if (document.getElementById('aaDetailPageDiv') != null) { + + //0.4 added some stylesheets + $('#daBodyview').css("height", $(window).outerHeight()); + + $('#daBodyview').css("width", $(window).outerWidth()); + + + } + }, 250); + } + + + $scope.getImgUrl = function () { + + alert('called...') } $scope.openModuleItem = function (elSelector) @@ -154,16 +193,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod $scope.addPinDataCanvas(); } - }, 250); - - - - - - //document.getElementById('aaDetailPageDiv').appendChild(imgCanvas); - } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html index c27bfde..e5bdf04 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html @@ -1,13 +1,6 @@