diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 92599c1..200f1f8 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -475,8 +475,11 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l //disable whole div because till now jspanel is not created. enable when jspanel gets disabled because //than jspanel will take care of disabling/enabling ui - document.getElementById('daBodyview').style.pointerEvents = "none"; - document.getElementById('daBodyview').style.opacity = "0.5"; + + if (document.getElementById('daBodyview') != null) { + document.getElementById('daBodyview').style.pointerEvents = "none"; + document.getElementById('daBodyview').style.opacity = "0.5"; + } //Check if browser 'REFRESHED' or 'RELOADED' if ($rootScope.CommonData != null) { @@ -507,7 +510,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $rootScope.loadSearchData(); - console.log('currentBodyViewId pickjed from localStorage: ' + currentBodyViewId); + console.log('currentBodyViewId picked from localStorage: ' + currentBodyViewId); var openViews; if ($rootScope.openViews != null || $rootScope.openViews != undefined) { @@ -584,15 +587,16 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l console.log('html is compiled ' + document.getElementById('daView')) if (document.getElementById('daView') != null) { - - $scope.loadDAView(currentBodyViewId); + $scope.loadDAView(currentBodyViewId); } else { - $compile(daBodyviewElement.contents())($scope); + // this is a work around solution for a bug where DA does not load for long and user need to close the DA partially opened + // view, now we are programmatically closing the hung view and when user will reopen the DA view from tile then it will + // open without any issue. + $("#daImagePanel .jsglyph-remove").click(); + console.log('html is compiled in else ' + document.getElementById('daView')) - - $scope.loadDAView(currentBodyViewId); } @@ -724,7 +728,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l }); } - $(document).on("click", "#daImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () { + $(document).on("click", "#daImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () { + $rootScope.selectedBodySystemName = 'All'; $rootScope.selectedBodySystemId = 0; $rootScope.searchSelectedText = ''; @@ -1887,14 +1892,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } ); } - //else if ($scope.ColoredImageSRC.length == totalCanvas) - //{ - // // dispatch event for enabling rest UI - // alert('all canvas drawn'); - // $scope.EnableUI(); - //} - - //-NIKI-for solving extarct issue 8286 + var imageCanvas = document.getElementById('imageCanvas' + bodyRegionId + '_MR'); @@ -1910,11 +1908,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } - - // - - // console.log('$rootScope.isListManagerSelected= ' + $rootScope.isListManagerSelected + ' length= ' + $scope.ColoredImageSRC.length) - + if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) { if ((($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) && ($scope.ColoredImageSRC.length == 9)) { @@ -1958,18 +1952,16 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.highLightBody(); } else { + + //This block is executed when normal body is created and no further process like highlight,extract, etc $rootScope.isLoading = false; $('#spinner').css('visibility', 'hidden'); - //debugger; + $scope.EnableUI(); + } } - else { - $rootScope.isLoading = false; - $('#spinner').css('visibility', 'hidden'); - //debugger; - $scope.EnableUI(); - } + } console.log('DrawMirroredImage- ColoredImageSRC. pushed and length: ' + $scope.ColoredImageSRC.length); @@ -2326,8 +2318,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l ); } - //-NIKI-for solving extarct issue 8286 - + var imageCanvas = document.getElementById('imageCanvas' + bodyRegionId); if (imageCanvas != null || imageCanvas != undefined) { @@ -2341,9 +2332,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $rootScope.coloredImageCanvasList[parseInt(bodyRegionId - 1)] = coloredImageDataVar; } - // - - + if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) { if ((($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) && ($scope.ColoredImageSRC.length == 9)) { @@ -2394,18 +2383,13 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } else { + //This block is executed when normal body is created and no further process like highlight,extract, etc $rootScope.isLoading = false; $('#spinner').css('visibility', 'hidden'); - //debugger; $scope.EnableUI(); } } - else { - $rootScope.isLoading = false; - $('#spinner').css('visibility', 'hidden'); - //debugger; - $scope.EnableUI(); - } + } console.log('DrawImage- ColoredImageSRC. pushed and length: ' + $scope.ColoredImageSRC.length); @@ -3058,9 +3042,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l grayCanvasContext.putImageData($rootScope.grayImageDataList[parseInt(i)], 0, 0); } } - $scope.message = AIAConstants.NO_BODY_SYSTEM_AVAILABLE; - $("#daMessageModal").modal('show'); - + $scope.message = AIAConstants.NO_BODY_SYSTEM_AVAILABLE; $("#daMessageModal").modal('show'); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 50b0688..7670961 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -1,7 +1,7 @@ 'use strict'; -AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", "$timeout", "DataService", "AuthenticationService", "LoginConstants", "UserModules", "LoginMessageConstants", "AdminService", "$http", "AdminConstants", "UserTypeConstants", -function ($rootScope, Modules, $log, $location, $timeout, DataService, AuthenticationService, LoginConstants, UserModules, LoginMessageConstants, AdminService, $http, AdminConstants, UserTypeConstants) { +AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", "$timeout", "DataService", "AuthenticationService", "LoginConstants", "UserModules", "LoginMessageConstants", "AdminService", "$http", "AdminConstants", "UserTypeConstants", "AIAConstants", +function ($rootScope, Modules, $log, $location, $timeout, DataService, AuthenticationService, LoginConstants, UserModules, LoginMessageConstants, AdminService, $http, AdminConstants, UserTypeConstants,AIAConstants) { //$scope.pageToOpen = { // name: 'MainMenu' @@ -111,117 +111,138 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $("body.modal-open").css("padding-right", "0px"); } - $rootScope.initializeAIA = function () { - $rootScope.isLoading = false; - - var url = $location.url(); + $rootScope.promptUserForCookies= function() + { + $rootScope.errorMessage = AIAConstants.COOKIES_MESSAGE; + $("#messageModal").modal('show'); + + } + + + $rootScope.initializeAIA = function () { + + if (navigator.cookieEnabled) { - if (url.indexOf('?unb:') != -1) { + $rootScope.isLoading = false; - $rootScope.isVisibleLogin = true; - $rootScope.UnblockUser(); - } - else if (url.indexOf('?em:') != -1) { + var url = $location.url(); + + //unblock user + if (url.indexOf('?unb:') != -1) { - $rootScope.isVisibleLogin = false; - $rootScope.isVisibleResetPass = true; + $rootScope.isVisibleLogin = true; + $rootScope.UnblockUser(); + } + else if (url.indexOf('?em:') != -1) { + + $rootScope.isVisibleLogin = false; + $rootScope.isVisibleResetPass = true; + } + else { + $rootScope.isVisibleLogin = true; + $rootScope.isVisibleResetPass = false; + getUserDetails(); + } } + else { + $rootScope.isVisibleLogin = true; - $rootScope.isVisibleResetPass = false; - getUserDetails(); + + $rootScope.promptUserForCookies(); } } - $rootScope.AuthenticateUser = function (userInfo) { - $rootScope.errorMessage = ""; - if (userInfo.username == "" || userInfo.username == null || userInfo.password == "" || userInfo.password == null) { + $rootScope.AuthenticateUser = function (userInfo) + { + if (navigator.cookieEnabled) { - // alert(LoginMessageConstants.USER_CREDENTIALS_MISSING); - $rootScope.errorMessage = LoginMessageConstants.USER_CREDENTIALS_MISSING; - $("#messageModal").modal('show'); - } - else { + $rootScope.errorMessage = ""; + if (userInfo.username == "" || userInfo.username == null || userInfo.password == "" || userInfo.password == null) { - AuthenticationService.authenticateUser(userInfo) - .then( + // alert(LoginMessageConstants.USER_CREDENTIALS_MISSING); + $rootScope.errorMessage = LoginMessageConstants.USER_CREDENTIALS_MISSING; + $("#messageModal").modal('show'); + } + else { - function (result) { - if (result == LoginConstants.USER_NOT_FOUND) { - $rootScope.isVisibleLogin = true; - // alert(LoginMessageConstants.USER_OR_PASSWORD_INCORRECT); - $rootScope.errorMessage = LoginMessageConstants.INVALID_USER; - $("#messageModal").modal('show'); - } - else { - if (typeof result.LoginId != undefined || result.LoginId != "" || result.LoginId != null) { + AuthenticationService.authenticateUser(userInfo) + .then( - if ($("#messageModal").length > 0) { - $("#messageModal").modal('hide'); - } - if (result.LoginFailureCauseId!=undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_PASSWORD_NOT_MATCH) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.INVALID_PASSWORD; - $("#messageModal").modal('show'); - } - else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_ID_BLOCKED_24_HRS) - { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.USER_BLOCKED; - $("#messageModal").modal('show'); - } - else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (result.LicenseInfo.IsActive) && result.IsSubscriptionExpired) - { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; - $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; - $("#messageModal").modal('show'); - } - else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && result.IsSubscriptionExpired) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; - $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; - $("#messageModal").modal('show'); - } - else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && result.IsSubscriptionExpired) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; - $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; - $("#messageModal").modal('show'); - } - else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && (!result.IsSubscriptionExpired)) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; - $("#messageModal").modal('show'); - } - else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.USER_INACTIVE_MESSAGE; - $("#messageModal").modal('show'); - } - else if ( (result.LicenseInfo!= null) && (result.LicenseInfo!= undefined) && (!result.LicenseInfo.IsActive) && (result.IsSubscriptionExpired)) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; - $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE; - $("#messageModal").modal('show'); - } - else if ((result.LicenseInfo!= null) && (result.LicenseInfo!= undefined) && (result.LicenseInfo.IsActive) && (result.IsSubscriptionExpired)) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; - $("#messageModal").modal('show'); - } - else if ((result.LicenseInfo!= null) && (result.LicenseInfo!= undefined) && (!result.LicenseInfo.IsActive) && (!result.IsSubscriptionExpired)) { - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = LoginMessageConstants.LICENSE_INACTIVE_MESSAGE; - $("#messageModal").modal('show'); - } - else { - - //if (result.UserType == UserTypeConstants.SUPER_ADMIN && result.IsActive) { //(!result.IsSubscriptionExpired) && - if (result.LicenseId == 0 && result.IsActive) { + function (result) { + if (result == LoginConstants.USER_NOT_FOUND) { + $rootScope.isVisibleLogin = true; + // alert(LoginMessageConstants.USER_OR_PASSWORD_INCORRECT); + $rootScope.errorMessage = LoginMessageConstants.INVALID_USER; + $("#messageModal").modal('show'); + } + else { + if (typeof result.LoginId != undefined || result.LoginId != "" || result.LoginId != null) { + + if ($("#messageModal").length > 0) { + $("#messageModal").modal('hide'); + } + if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_PASSWORD_NOT_MATCH) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.INVALID_PASSWORD; + $("#messageModal").modal('show'); + } + else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_ID_BLOCKED_24_HRS) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.USER_BLOCKED; + $("#messageModal").modal('show'); + } + else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (result.LicenseInfo.IsActive) && result.IsSubscriptionExpired) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; + $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; + $("#messageModal").modal('show'); + } + else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && result.IsSubscriptionExpired) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; + $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; + $("#messageModal").modal('show'); + } + else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && result.IsSubscriptionExpired) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; + $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; + $("#messageModal").modal('show'); + } + else if ((result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) && (result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && (!result.IsSubscriptionExpired)) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE; + $("#messageModal").modal('show'); + } + else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_USER_NOT_ACTIVE) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.USER_INACTIVE_MESSAGE; + $("#messageModal").modal('show'); + } + else if ((result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && (result.IsSubscriptionExpired)) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; + $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE; + $("#messageModal").modal('show'); + } + else if ((result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (result.LicenseInfo.IsActive) && (result.IsSubscriptionExpired)) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.'; + $("#messageModal").modal('show'); + } + else if ((result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && (!result.IsSubscriptionExpired)) { + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = LoginMessageConstants.LICENSE_INACTIVE_MESSAGE; + $("#messageModal").modal('show'); + } + else { + + //if (result.UserType == UserTypeConstants.SUPER_ADMIN && result.IsActive) { //(!result.IsSubscriptionExpired) && + if (result.LicenseId == 0 && result.IsActive) { $rootScope.userData = result; $rootScope.userModules = result.Modules; $rootScope.isVisibleLogin = false; @@ -233,42 +254,49 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic } else { if (result.LicenseInfo != null && result.LicenseInfo.IsTermAccepted) { - $rootScope.userData = result; - $rootScope.userModules = result.Modules; - $rootScope.isVisibleLogin = false; - $rootScope.haveRoleAdmin = false; - localStorage.setItem('loggedInUserDetails', JSON.stringify(result)); - ShowAssignedModulesPopup(result.Modules); - $location.path('/'); + $rootScope.userData = result; + $rootScope.userModules = result.Modules; + $rootScope.isVisibleLogin = false; + $rootScope.haveRoleAdmin = false; + localStorage.setItem('loggedInUserDetails', JSON.stringify(result)); + ShowAssignedModulesPopup(result.Modules); + $location.path('/'); + } + else { + if ($('#dvTerms').length > 0) { + $('#dvTerms').html(result.TermsAndConditionsText); } - else { - if ($('#dvTerms').length > 0) { - $('#dvTerms').html(result.TermsAndConditionsText); - } - $rootScope.isVisibleLogin = true; - $('#dvTermCondition').fadeIn(); - $rootScope.userData = result; - $rootScope.haveRoleAdmin = false; - localStorage.setItem('loggedInUserDetails', JSON.stringify(result)); - $location.path('/'); - } + $rootScope.isVisibleLogin = true; + $('#dvTermCondition').fadeIn(); + $rootScope.userData = result; + $rootScope.haveRoleAdmin = false; + localStorage.setItem('loggedInUserDetails', JSON.stringify(result)); + $location.path('/'); } - } - + } + } - }), - - function (error) { - console.log(' Error in authentication = ' + error.statusText); - // alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS); - $rootScope.isVisibleLogin = true; - $rootScope.errorMessage = error; - $("#messageModal").modal('show'); - } + } + }), + + function (error) { + console.log(' Error in authentication = ' + error.statusText); + // alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS); + $rootScope.isVisibleLogin = true; + $rootScope.errorMessage = error; + $("#messageModal").modal('show'); + } + } } + + else + { + $rootScope.promptUserForCookies(); + } + } function ShowAssignedModulesPopup(userModules) { diff --git a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js index d5c6f2d..662750e 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js @@ -492,11 +492,13 @@ AIA.constant("UserModules", [ } ]); -AIA.constant("AIAConstants", { +AIA.constant("AIAConstants", { "NO_BODY_SYSTEM_AVAILABLE": "Selected body system is not available on this layer.", + "COOKIES_MESSAGE": "You need to enable your browser's cookies to run this application.", }) + AIA.config(function ($routeProvider, pages, $locationProvider) { $locationProvider.html5Mode(true);