Commit 2e96d9c38cc485b7744bdf5ef6242a468f0f381d
1 parent
2ca490b1
this is for aadetailpage not open on QA url
Showing
1 changed file
with
3 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -134,6 +134,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -134,6 +134,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
134 | 134 | ||
135 | //0.4 for Opening module item, load it into image | 135 | //0.4 for Opening module item, load it into image |
136 | var openedImage = new Image(); | 136 | var openedImage = new Image(); |
137 | + openedImage.id = 'modItemImage'; | ||
137 | openedImage.name = $rootScope.OpenItemImagePath; | 138 | openedImage.name = $rootScope.OpenItemImagePath; |
138 | openedImage.onload = getImageHeightWidth; | 139 | openedImage.onload = getImageHeightWidth; |
139 | openedImage.onerror = loadFailure; | 140 | openedImage.onerror = loadFailure; |
@@ -149,8 +150,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | @@ -149,8 +150,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo | ||
149 | $('#aaBodyView').css("width", $(window).outerWidth()); | 150 | $('#aaBodyView').css("width", $(window).outerWidth()); |
150 | 151 | ||
151 | $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle"); | 152 | $scope.currentTitleFromJson = localStorage.getItem("currentViewTitle"); |
152 | - $("#modItemImage").attr('src', $rootScope.OpenItemImagePath); | ||
153 | - | 153 | + //$("#modItemImage").attr('src', $rootScope.OpenItemImagePath); |
154 | + $(openedImage).appendTo('#canvasDiv'); | ||
154 | 155 | ||
155 | $rootScope.ViewImageWidth = $("#modItemImage").width(); | 156 | $rootScope.ViewImageWidth = $("#modItemImage").width(); |
156 | $scope.ViewImageWidth = $("#modItemImage").width(); | 157 | $scope.ViewImageWidth = $("#modItemImage").width(); |