Commit 12271f33d5289ff1964221aec183529f1cc04497
1 parent
aca3be9d
fixed adamImage in CB
Showing
1 changed file
with
25 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js
... | ... | @@ -1399,10 +1399,34 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ |
1399 | 1399 | break; |
1400 | 1400 | case "THREE_D_ANATOMY": |
1401 | 1401 | $scope.load3DAnatomyModule(moduleName); |
1402 | - break; | |
1402 | + break; | |
1403 | + case "ADAM_IMAGES": | |
1404 | + $scope.loadAdamImageModule(moduleName); | |
1405 | + break; | |
1403 | 1406 | } |
1404 | 1407 | |
1405 | 1408 | } |
1409 | + $scope.loadAdamImageModule = function (moduleName) { | |
1410 | + | |
1411 | + var AIData = ModuleService.getModuleData(moduleName); | |
1412 | + | |
1413 | + if (AIData != undefined && AIData.length > 0) { | |
1414 | + $rootScope.isCallFromOtherModule = true; | |
1415 | + | |
1416 | + var aiSectionExist = document.getElementById('aiCustomModuleDiv'); | |
1417 | + | |
1418 | + if (aiSectionExist == null) { | |
1419 | + $('#cbparentcustomDiv').append($('<div id="aiCustomModuleDiv"></div>')); | |
1420 | + $e = $('#aiCustomModuleDiv').append("<adam-image-directive></adam-image-directive>"); | |
1421 | + $compile($e)($scope); | |
1422 | + } | |
1423 | + else { | |
1424 | + // open Adam Image panel on same slide by open resource | |
1425 | + $rootScope.OpenAdamImageViewMain(); | |
1426 | + } | |
1427 | + | |
1428 | + } | |
1429 | + } | |
1406 | 1430 | $scope.load3DAnatomyModule = function (moduleName) { |
1407 | 1431 | |
1408 | 1432 | var ThreeDData = ModuleService.getModuleData(moduleName); | ... | ... |