From 8de220fac2b567a53d9050ef0892879ba3b88f7a Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Wed, 21 Dec 2016 17:35:03 +0530 Subject: [PATCH] Trying to resolve scope Issue on AA --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js | 57 ++++++++++++++++++++++++++++++++++++++++++++------------- 400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html | 23 ++++------------------- 400-SOURCECODE/AIAHTML5.Web/app/views/module-item-view.html | 6 +++--- 3 files changed, 51 insertions(+), 35 deletions(-) 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 @@ 
- - - - -
@@ -48,15 +41,7 @@
- - +
  @@ -97,11 +82,11 @@
- -
+ + - +