' +
'
',
title: "",
position: {
top: 1,
- left: 1
+ left: 0
},
controls: { buttons: 'closeonly' },
draggable: "disabled",
size: {
- width: screen.width-30,
- height: screen.height-150
+ width: newpanelWidth,
+ height: newpanelHeight
},
});
@@ -326,67 +337,60 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
$scope.OpenResourcePanel = function (iframe) {
-
+ var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
+ var head = $(innerDoc).contents().find("head");
+ //hide menu link
+ var css = '';
+
+ // var storefunc = '';
+ $(head).append(css);
+ // $(head).append(storefunc);
+
var canvasDIvHeight = $("#dvOpenResourcePanel .jsPanel-content").height();
$('#OpenModuleInCB').css('height', canvasDIvHeight);
- //var iframe = document.getElementById('OpenModuleInCB');
- var innerDoc = (iframe.contentDocument) ? iframe.contentDocument : iframe.contentWindow.document;
- var head = $(innerDoc).contents().find("head");
- if (head != undefined && head != null)
- {
+ $timeout(function () {
+ console.log('frame content loding delayed......');
$scope.loadopenresourceContent(head, iframe);
- }
- else
- {
- $timeout(function () {
-
- var head = $(innerDoc).contents().find("head");
+ if (head != undefined && head != null)
+ {
$scope.loadopenresourceContent(head, iframe);
+ }
- }, 500);
- }
+ }, 100);
}
$scope.loadopenresourceContent = function (header, iframe)
- {
- //disable link
- var css = '';
-
- var storefunc = '';
- $(header).append(css);
- $(header).append(storefunc);
-
+ {
$timeout(function () {
- // var elmnt = iframe.contentWindow.document.getElementById("da-view-list");
- //$('#' + elmnt.id).trigger('click');
sessionStorage.setItem('isModuleOpenByOpenResource', 'true');
- sessionStorage.removeItem('ExitsCBFileDetail');
-
- OpenDefaultModule(iframe);
+ sessionStorage.removeItem('ExitsCBFileDetail');
+ // OpenDefaultModule(iframe);
}, 500);
-
}
$scope.AIAModuleOpenResourceInfo = function (newWindowData)
@@ -425,28 +429,28 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
else if (($location.url() == "/da-body-view")) {
- $scope.loadOpenResourceWindow(newWindowData.mType, '#daBodyview');
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#daparentcustomDiv');
}
else if ($location.url() == "/clinical-illustrations-detail") {
- $scope.loadOpenResourceWindow(newWindowData.mType, '#CIView');
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#ciparentcustomDiv');
}
else if ($location.url() == "/module-item-view") {
- $scope.loadOpenResourceWindow(newWindowData.mType, '#aaBodyView');
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#aaparentcustomDiv');
}
else if ($location.url() == "/clinical-animations-detail") {
- $scope.loadOpenResourceWindow(newWindowData.mType, '#CAView');
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#caparentcustomDiv');
}
else if ($location.url() == "/adam-images-detail") {
- $scope.loadOpenResourceWindow(newWindowData.mType, '#AIView');
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#aiparentcustomDiv');
}
else if ($location.url() == "/3d-anatomy-details") {
- $scope.loadOpenResourceWindow(newWindowData.mType, '#ThreeDView');
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#tdparentcustomDiv');
}
else if ($location.url() == "/lab-exercise-view") {
- $scope.loadOpenResourceWindow(newWindowData.mType, '#labBodyview');
+ $scope.loadOpenResourceWindow(newWindowData.mType, '#labparentcustomDiv');
}
}, 500);
@@ -459,7 +463,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
case "DISSECTIBLE_ANATOMY":
var daSectionExist = document.getElementById('daCustomModuleDiv');
- if (daSectionExist == null && BasemoduleDivId != "#daBodyview") {
+ if (daSectionExist == null && BasemoduleDivId != "#daparentcustomDiv") {
$(BasemoduleDivId).append($('
'));
var html = $('#daCustomModuleDiv').append("
");
$compile(html)($scope);
@@ -472,7 +476,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
case "ATLAS_ANATOMY":
var aaSectionExist = document.getElementById('aaCustomModuleDiv');
- if (aaSectionExist == null && BasemoduleDivId != "#aaBodyView") {
+ if (aaSectionExist == null && BasemoduleDivId != "#aaparentcustomDiv") {
$(BasemoduleDivId).append($('
'));
var html = $('#aaCustomModuleDiv').append("
");
$compile(html)($scope);
@@ -485,7 +489,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
case "CLINICAL_ILLUSTRATIONS":
var ciSectionExist = document.getElementById('ciCustomModuleDiv');
- if (ciSectionExist == null && BasemoduleDivId != "#CIView") {
+ if (ciSectionExist == null && BasemoduleDivId != "#ciparentcustomDiv") {
$(BasemoduleDivId).append($('
'));
var html = $('#ciCustomModuleDiv').append("
");
$compile(html)($scope);
@@ -498,7 +502,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
case "ADAM_IMAGES":
var aiSectionExist = document.getElementById('aiCustomModuleDiv');
- if (aiSectionExist == null && BasemoduleDivId != "#AIView") {
+ if (aiSectionExist == null && BasemoduleDivId != "#aiparentcustomDiv") {
$(BasemoduleDivId).append($('
'));
var html = $('#aiCustomModuleDiv').append("
");
$compile(html)($scope);
@@ -511,7 +515,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
case "CLINICAL_ANIMATIONS":
var caSectionExist = document.getElementById('caCustomModuleDiv');
- if (caSectionExist == null && BasemoduleDivId != "#CAView") {
+ if (caSectionExist == null && BasemoduleDivId != "#caparentcustomDiv") {
$(BasemoduleDivId).append($('
'));
var html = $('#caCustomModuleDiv').append("
");
$compile(html)($scope);
@@ -524,7 +528,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
case "THREE_D_ANATOMY":
var threeDSectionExist = document.getElementById('theeDCustomModuleDiv');
- if (threeDSectionExist == null && BasemoduleDivId != "#ThreeDView") {
+ if (threeDSectionExist == null && BasemoduleDivId != "#tdparentcustomDiv") {
$(BasemoduleDivId).append($('
'));
var html = $('#theeDCustomModuleDiv').append("
");
$compile(html)($scope);
@@ -538,7 +542,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
case "LAB_EXERCISE":
var labSectionExist = document.getElementById('labCustomModuleDiv');
- if (labSectionExist == null && BasemoduleDivId != "#labBodyview") {
+ if (labSectionExist == null && BasemoduleDivId != "#labparentcustomDiv") {
$(BasemoduleDivId).append($('
'));
var html = $('#labCustomModuleDiv').append("
");
$compile(html)($scope);
@@ -596,7 +600,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
$rootScope.promptUserForCookies = function () {
- $rootScope.errorMessage = AIAConstants.COOKIES_MESSAGE;
+ $('#errorMessage').text(AIAConstants.COOKIES_MESSAGE);
$("#messageModal").modal('show');
}
@@ -638,8 +642,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
var url = $location.url();
//some time value not remove then reload
- sessionStorage.removeItem('isModuleOpenByOpenResource');
sessionStorage.removeItem('ExitsCBFileDetail');
+ sessionStorage.removeItem('isModuleOpenByOpenResource');
$('#login').css('visibility', 'visible');
$rootScope.lexiconData();
@@ -720,11 +724,15 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
//incase site user login userid is 0 so then using license id
//logout site user while reload url without parameter
var userId=loggedInUser.Id==0?loggedInUser.LicenseId:loggedInUser.Id;
+
+ //licenseId would be zero for admin/gernal admin
+ var isadminType=loggedInUser.LicenseId==0?true:false;
$scope.checkuserstatus = {
userId: userId,
tagName: loggedInUser.Id==0?'logout':'update',
SessionId:loggedInUser.SessionId,
- isSiteUser:loggedInUser.isSiteUser
+ isSiteUser:loggedInUser.isSiteUser,
+ isAdmin:isadminType
}
// this case found when browser closed by user after login. after long time (after 20 min) open site again
@@ -741,15 +749,15 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$rootScope.LogoutUserSession();
}
else
- {
- AuthenticateAlreadyLoggedInUser();
+ {
+ AuthenticateAlreadyLoggedInUser();
}
}
}),
function (error) {
console.log(' Error in user login status = ' + error.statusText);
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
}
@@ -980,10 +988,10 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
$rootScope.AuthenticateUser = function (userInfo) {
if (navigator.cookieEnabled) {
- $rootScope.errorMessage = "";
+ $('#errorMessage').text("");
if (userInfo.username == "" || userInfo.username == null || userInfo.username == undefined || userInfo.password == "" || userInfo.password == null || userInfo.password == undefined) {
- $rootScope.errorMessage = LoginMessageConstants.USER_CREDENTIALS_MISSING;
+ $('#errorMessage').text(LoginMessageConstants.USER_CREDENTIALS_MISSING);
$("#messageModal").modal('show');
}
else {
@@ -997,7 +1005,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if (result == LoginConstants.USER_NOT_FOUND) {
$rootScope.LoginEnableUI();
$rootScope.isVisibleLogin = true;
- $rootScope.errorMessage = LoginMessageConstants.INVALID_USER;
+ $('#errorMessage').text(LoginMessageConstants.INVALID_USER);
$("#messageModal").modal('show');
}
else {
@@ -1056,10 +1064,21 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
- $rootScope.lexicons = {
- primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
- secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
- };
+ //under graduate
+ if(result.EditionId==2 || result.EditionId==4 )
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"2",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
+ else
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
$rootScope.InitiateLexicon( $rootScope.lexicons.primaryid, $rootScope.lexicons.secondryids)
@@ -1090,10 +1109,22 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
- $rootScope.lexicons = {
- primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
- secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
- };
+ //under graduate
+ if(result.EditionId==2 || result.EditionId==4 )
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"2",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
+ else
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
+
$rootScope.InitiateLexicon( $rootScope.lexicons.primaryid, $rootScope.lexicons.secondryids)
@@ -1109,72 +1140,72 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_PASSWORD_NOT_MATCH) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.INVALID_PASSWORD;
+ $('#errorMessage').text(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.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.USER_BLOCKED;
+ $('#errorMessage').text(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.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
- $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE;
+ var expmsg = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
+ $('#errorMessage').text(expmsg + ' ' + 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.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
- $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE;
+ var expmsg = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
+ $('#errorMessage').text(expmsg + ' ' + 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.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
- $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE;
+ var expmsg = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
+ $('#errorMessage').text(expmsg + ' ' + 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.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.LICENSE_INACTIVE_MESSAGE + ' ' + LoginMessageConstants.USER_INACTIVE_MESSAGE;
+ $('#errorMessage').text(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.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.USER_INACTIVE_MESSAGE;
+ $('#errorMessage').text(LoginMessageConstants.USER_INACTIVE_MESSAGE);
$("#messageModal").modal('show');
}
else if ((result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && (result.IsSubscriptionExpired)) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
- $rootScope.errorMessage = $rootScope.errorMessage + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE;
+ var expmsg = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
+ $('#errorMessage').text(expmsg + ' ' + LoginMessageConstants.LICENSE_INACTIVE_MESSAGE);
$("#messageModal").modal('show');
}
else if ((result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (result.LicenseInfo.IsActive) && (result.IsSubscriptionExpired)) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
+ $('#errorMessage').text(LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.');
$("#messageModal").modal('show');
}
else if ((result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (result.LicenseInfo.IsActive) && (result.IsSubscriptionNotStart)) {
// validation for new license which license start date is future date .
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_NOT_START_MESSAGE + result.SubscriptionStartDate + '.';
+ $('#errorMessage').text(LoginMessageConstants.SUBSCRIPTION_NOT_START_MESSAGE + result.SubscriptionStartDate + '.');
$("#messageModal").modal('show');
}
else if ((result.LicenseInfo != null) && (result.LicenseInfo != undefined) && (!result.LicenseInfo.IsActive) && (!result.IsSubscriptionExpired)) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.LICENSE_INACTIVE_MESSAGE;
+ $('#errorMessage').text(LoginMessageConstants.LICENSE_INACTIVE_MESSAGE);
$("#messageModal").modal('show');
}
else {
@@ -1325,7 +1356,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
// set user session time
- $rootScope.loadUserSession();
+ $rootScope.loadUserSession();
$rootScope.LoginEnableUI();
}
@@ -1337,7 +1368,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
console.log(' Error in authentication = ' + error.statusText);
$rootScope.LoginEnableUI();
$rootScope.isVisibleLogin = true;
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
}
}
@@ -1498,7 +1529,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
console.log(' Error in bypass login = ' + error.statusText);
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
}
@@ -1507,7 +1538,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
{
console.log(' invalid detail in bypass login');
$rootScope.isVisibleLogin = true;
- $rootScope.errorMessage = "authentication is not allowed due to invalid details format .\nPlease pass the correct details again!";
+ $('#errorMessage').text("authentication is not allowed due to invalid details format .\nPlease pass the correct details again!");
$("#messageModal").modal('show');
}
@@ -1560,49 +1591,49 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if (result == LoginConstants.INVALID_CLIENT) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginConstants.INVALID_CLIENT;
+ $('#errorMessage').text(LoginConstants.INVALID_CLIENT);
$("#messageModal").modal('show');
}
else if (result == LoginConstants.MSG_NOT_AUTHORIZE_SITE_USER) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginConstants.MSG_NOT_AUTHORIZE_SITE_USER;
+ $('#errorMessage').text(LoginConstants.MSG_NOT_AUTHORIZE_SITE_USER);
$("#messageModal").modal('show');
}
else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_ACCOUNT_NUMBER_NOT_NULL) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.E_ACCOUNT_NUMBER_NOT_NULL;
+ $('#errorMessage').text(LoginMessageConstants.E_ACCOUNT_NUMBER_NOT_NULL);
$("#messageModal").modal('show');
}
else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_EDITION_ID_NOT_NULL) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.E_EDITION_ID_NOT_NULL;
+ $('#errorMessage').text(LoginMessageConstants.E_EDITION_ID_NOT_NULL);
$("#messageModal").modal('show');
}
else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.E_EDITION_NOT_LINKED_WITH_SITE) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.E_EDITION_NOT_LINKED_WITH_SITE;
+ $('#errorMessage').text(LoginMessageConstants.E_EDITION_NOT_LINKED_WITH_SITE);
$("#messageModal").modal('show');
}
else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.LICENSE_INACTIVE) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.LICENSE_INACTIVE_MESSAGE;
+ $('#errorMessage').text(LoginMessageConstants.LICENSE_INACTIVE_MESSAGE);
$("#messageModal").modal('show');
}
else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.SITELICENSE_EXPIRED) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.';
+ $('#errorMessage').text(LoginMessageConstants.SUBSCRIPTION_EXPIRATION_MESSAGE + result.SubscriptionExpirationDate + '.');
$("#messageModal").modal('show');
}
else if (result.LoginFailureCauseId != undefined && result.LoginFailureCauseId.toString() == LoginConstants.SITELICENSE_NOTSTARTED) {
$rootScope.isVisibleLogin = true;
$rootScope.LoginEnableUI();
- $rootScope.errorMessage = LoginMessageConstants.SUBSCRIPTION_NOT_START_MESSAGE + result.SubscriptionStartDate + '.';
+ $('#errorMessage').text(LoginMessageConstants.SUBSCRIPTION_NOT_START_MESSAGE + result.SubscriptionStartDate + '.');
$("#messageModal").modal('show');
}
else
@@ -1655,11 +1686,23 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$rootScope.UpdateSetting($rootScope.formsetting);
}
-
- $rootScope.lexicons = {
- primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
- secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
- };
+
+ //under graduate
+ if(result.EditionId==2 || result.EditionId==4 )
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"2",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
+ else
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
+
$rootScope.InitiateLexicon( $rootScope.lexicons.primaryid, $rootScope.lexicons.secondryids)
@@ -1691,10 +1734,21 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
- $rootScope.lexicons = {
- primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
- secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
- };
+ //under graduate
+ if(result.EditionId==2 || result.EditionId==4 )
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"2",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
+ else
+ {
+ $rootScope.lexicons = {
+ primaryid:result.userLexicon!=null && result.userLexicon.primaryid!=""?result.userLexicon.primaryid:"1",
+ secondryids:result.userLexicon!=null && result.userLexicon.secondryids!="" ?result.userLexicon.secondryids:""
+ };
+ }
$rootScope.InitiateLexicon( $rootScope.lexicons.primaryid, $rootScope.lexicons.secondryids)
@@ -1802,10 +1856,10 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$location.path('/');
}
}
- $rootScope.LoginEnableUI();
- // set user session time
- $rootScope.loadUserSession();
-
+
+ $rootScope.loadUserSession();
+ $rootScope.LoginEnableUI();
+
}
}
@@ -1818,7 +1872,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
console.log(' Error in authentication = ' + error.statusText);
$rootScope.LoginEnableUI();
$rootScope.isVisibleLogin = true;
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
}
@@ -1915,7 +1969,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
console.log(result);
$rootScope.isVisibleLogin = true;
$('#dvTermCondition').fadeIn();
- $rootScope.errorMessage = LoginConstants.LICENSE_TERM_CONDITION_UPDATE_FAILED;
+ $('#errorMessage').text(LoginConstants.LICENSE_TERM_CONDITION_UPDATE_FAILED);
$("#messageModal").modal('show');
$("#messageModal").css("z-index", 111112);
localStorage.removeItem("loggedInUserDetails");
@@ -1926,7 +1980,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
console.log(' Error in Term and Condition acceptance status update = ' + error);//.statusText
$rootScope.isVisibleLogin = true;
$rootScope.isVisibleLogin = true;
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
$('#dvTermCondition').fadeIn();
});
@@ -1956,7 +2010,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
userId: null,
tagName: null,
SessionId:null,
- isSiteUser:false
+ isSiteUser:false,
+ isAdmin:false
}
console.log('user session start');
$rootScope.CheckUserSession('insert');
@@ -2019,6 +2074,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$rootScope.LogoutUserSession = function () {
$rootScope.isSessionTimeout=true;
localStorage.removeItem('loggedInUserDetails');
+ sessionStorage.removeItem('isModuleOpenByOpenResource');
+ sessionStorage.removeItem('ExitsCBFileDetail');
localStorage.clear();
document.location = '/';
$rootScope.isVisibleLogin = true;
@@ -2033,6 +2090,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$rootScope.userStatus.tagName=tagName;
$rootScope.userStatus.SessionId=$rootScope.userData.SessionId;
$rootScope.userStatus.isSiteUser=$rootScope.userData.isSiteUser;
+ //licenseId would be zero for admin/gernal admin
+ $rootScope.userStatus.isAdmin=$rootScope.userData.LicenseId==0?true:false;
AuthenticationService.ManageUserLoginStatus($rootScope.userStatus)
.then(
@@ -2048,7 +2107,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}),
function (error) {
console.log(' Error in user login status = ' + error.statusText);
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
}
@@ -2101,12 +2160,12 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
.then(function (result) {
if (result == LoginConstants.USER_NOT_FOUND) {
removeEmailPopUp();
- $rootScope.errorMessage = LoginMessageConstants.INCORRECT_EMAIL_ID;
+ $('#errorMessage').text(LoginMessageConstants.INCORRECT_EMAIL_ID);
$("#messageModal").modal('show');
}
else if (result == LoginConstants.MAIL_NOT_SENT) {
removeEmailPopUp();
- $rootScope.errorMessage = LoginMessageConstants.MAIL_NOT_SENT;
+ $('#errorMessage').text(LoginMessageConstants.MAIL_NOT_SENT);
$("#messageModal").modal('show');
}
else {
@@ -2122,7 +2181,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
else
message = LoginMessageConstants.USERID_SENT_IN_EMAIL
- $rootScope.errorMessage = message;
+ $('#errorMessage').text(message);
$("#messageModal").modal('show');
@@ -2133,19 +2192,19 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
function (error) {
console.log(' Error in authentication = ' + error.statusText);
removeEmailPopUp();
- $rootScope.errorMessage = error;
+ $('#errorMessage').text( error);
$("#messageModal").modal('show');
});
}
else {
removeEmailPopUp();
- $rootScope.errorMessage = LoginMessageConstants.INCORRECT_EMAIL_ID;
+ $('#errorMessage').text(LoginMessageConstants.INCORRECT_EMAIL_ID);
$("#messageModal").modal('show');
}
}
else {
removeEmailPopUp();
- $rootScope.errorMessage = LoginMessageConstants.BLANK_EMAIL_ID;
+ $('#errorMessage').text(LoginMessageConstants.BLANK_EMAIL_ID);
$("#messageModal").modal('show');
}
@@ -2185,30 +2244,30 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
.then(
function (result) {
if (result == LoginConstants.USER_NOT_FOUND) {
- $rootScope.errorMessage = LoginMessageConstants.USER_NOT_FOUND;
+ $('#errorMessage').text(LoginMessageConstants.USER_NOT_FOUND);
$("#messageModal").modal('show');
}
else if (result == LoginConstants.EXCEPTION_OCCURED) {
- $rootScope.errorMessage = LoginConstants.ERROR_IN_FECTHING_DETAILS;
+ $('#errorMessage').text(LoginConstants.ERROR_IN_FECTHING_DETAILS);
$("#messageModal").modal('show');
}
else if (result == LoginConstants.SQL_CONNECTION_ERROR) {
- $rootScope.errorMessage = LoginConstants.SQL_CONNECTION_ERROR_MESSAGE;
+ $('#errorMessage').text(LoginConstants.SQL_CONNECTION_ERROR_MESSAGE);
$("#messageModal").modal('show');
}
else {
//if ((result.IsAcknowledged == true) && (result.IsModifiedCountAvailable == true)) {
if (result == LoginMessageConstants.PASSWORD_UPDATE_SUCCESS) {
- $rootScope.errorMessage = LoginMessageConstants.PASSWORD_RESET_MESSAGE;
+ $('#errorMessage').text(LoginMessageConstants.PASSWORD_RESET_MESSAGE);
$("#messageModal").modal('show');
$rootScope.isVisibleLogin = true;
$rootScope.isVisibleResetPass = false;
$location.url("/");
}
else {
- $rootScope.errorMessage = LoginMessageConstants.PASSWORD_RESET_FAILURE;
+ $('#errorMessage').text(LoginMessageConstants.PASSWORD_RESET_FAILURE);
$("#messageModal").modal('show');
$rootScope.isVisibleLogin = true;
$rootScope.isVisibleResetPass = false;
@@ -2218,18 +2277,18 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
},
function (error) {
console.log(' Error in authentication = ' + error.statusText);
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
});
}
else {
- $rootScope.errorMessage = LoginMessageConstants.NEW_AND_OLD_PASSWORD_DONOT_MATCH;
+ $('#errorMessage').text(LoginMessageConstants.NEW_AND_OLD_PASSWORD_DONOT_MATCH);
$("#messageModal").modal('show');
}
}
else {
- $rootScope.errorMessage = LoginMessageConstants.NEW_PASSWORD_FIELD_IS_EMPTY;
+ $('#errorMessage').text(LoginMessageConstants.NEW_PASSWORD_FIELD_IS_EMPTY);
$("#messageModal").modal('show');
}
@@ -2254,7 +2313,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$location.url("/");
}
else {
- $rootScope.errorMessage = LoginMessageConstants.UNABLE_TO_UNBLOCK;
+ $('#errorMessage').text(LoginMessageConstants.UNABLE_TO_UNBLOCK);
$("#messageModal").modal('show');
$rootScope.isVisibleLogin = true;
$location.url("/");
@@ -2262,14 +2321,81 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
},
function (error) {
console.log(' Error in UnblockUser = ' + error.statusText);
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
}
);
}
+ $rootScope.AllPanelStoreObject=[];
+ $rootScope.AllPanelObject=function(panelno,panelObject)
+ {
+ var windata={
+ 'winid': panelno,
+ 'panelObject': panelObject,
+ };
+
+ $rootScope.AllPanelStoreObject.push(windata);
+ $(".jsPanel").draggable({
+ containment : [0,55,5000,4000]//[left,top,right,bottom]
+ });
+
+ }
+
+ $rootScope.orientationchangeToMax=function(windowviewid)
+ {
+ for (var x = 0 ; x < $rootScope.AllPanelStoreObject.length; x++) {
+ if ($rootScope.AllPanelStoreObject[x].winid == windowviewid) {
+ var obj=$rootScope.AllPanelStoreObject[x]['panelObject'];
+ obj.maximize();
+ break;
+ }
+ }
+ }
+ $rootScope.orientationchangeToNormal=function(windowviewid)
+ {
+ for (var x = 0 ; x < $rootScope.AllPanelStoreObject.length; x++) {
+
+ if ($rootScope.AllPanelStoreObject[x].winid == windowviewid) {
+ var obj=$rootScope.AllPanelStoreObject[x]['panelObject'];
+ obj.normalize();
+ break;
+ }
+ }
+ }
+
$(document).ready(function () {
+ var $ua = navigator.userAgent;
+ if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {
+ $('#arragePannel .dropdown-content').css("display","block");
+ }
+
+ $(window).unbind('resize');
+ window.addEventListener("resize", orientationchange);
+ function orientationchange() {
+ if($location.url()!= "/curriculum-builder-detail") {
+ var moduleImagePanel = $("div[id*='ImagePanel']");
+
+ if (moduleImagePanel.length > 0) {
+
+ for (var j = 0; j < moduleImagePanel.length; j++) {
+ var paneld=moduleImagePanel[j].id;
+ var len = (paneld).split("_").length;
+ var MultiWinId = (paneld).split("_")[len - 1];
+
+ //first set to normal and then to set max mode while browser resize or iPad orientation change
+ $rootScope.orientationchangeToNormal(MultiWinId);
+ $rootScope.orientationchangeToMax(MultiWinId);
+
+ }
+ }
+
+ }
+ };
+
+
+
$(function () {
var colpick = $('.demo').each(function () {
@@ -2564,30 +2690,228 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}, 300);
}
- $rootScope.cBModulejsPanelTop = function () {
-
- var paneltopPosition = 0;
+ $rootScope.arrangeCascadePanel = function () {
+ //cascade view
+ var pTop = 55;
+ var pLeft = 1;
+ var resetWidth=0;
+ if($location.url()== "/curriculum-builder-detail") {
+ pTop = 30;
+ pLeft = 0;
+ }
var moduleImagePanel = $("div[id*='ImagePanel']");
+
+ if (moduleImagePanel.length > 0) {
+ var resetWidth=($(window).innerWidth()-30)/2;
+
+ for (var j = 0; j < moduleImagePanel.length; j++) {
+ var paneld=moduleImagePanel[j].id;
+ var len = (paneld).split("_").length;
+ var MultiWinId = (paneld).split("_")[len - 1];
+ $rootScope.orientationchangeToNormal(MultiWinId);
+
+ if(j>0)
+ {
+ pTop = pTop+30;
+ pLeft = pLeft+30;
+ }
+ $("#"+paneld).css('top',pTop);
+ $("#"+paneld).css('left',pLeft);
+
+ $("#"+paneld+" .jsPanel-hdr .jsPanel-title").css('width','300px');
+ $("#"+paneld).css('width',resetWidth);
+ $("#"+paneld+' .jsPanel-content').css('width',resetWidth);
+ $("#"+paneld).css('z-index',j+1000);
+
+ $scope.resetPanelPosition(MultiWinId,paneld,resetWidth,pTop,pLeft);
+
+ }
- if (moduleImagePanel.length > 0) {
- for (var j = 0; j < moduleImagePanel.length; j++) {
-
- var ctx = document.getElementById(moduleImagePanel[j].id);
+ }
+
+ }
+ $rootScope.arrangeTiledPanel = function () {
+ //tiled view
+ var pTop = 55;
+ var pLeft = 1;
+ var resetWidth=0;
+ var countreset=0;
+ if($location.url()== "/curriculum-builder-detail") {
+ pTop = 30;
+ pLeft = 0;
+ }
+ var countnumber=0;
+ var moduleImagePanel = $("div[id*='ImagePanel']");
+
+ if (moduleImagePanel.length > 0) {
- var pTop = ctx.offsetTop + ctx.offsetHeight + 10;
+ if(moduleImagePanel.length<=2)
+ {
+ resetWidth=($(window).innerWidth()-30)/2;
+ if($location.url()== "/curriculum-builder-detail") {
+ resetWidth=($(window).innerWidth()-60)/2;
+ }
+
+ }
+ else if(moduleImagePanel.length>=3)
+ {
+ resetWidth=($(window).innerWidth()-30)/3;
+ if($location.url()== "/curriculum-builder-detail") {
+ resetWidth=($(window).innerWidth()-65)/3;
+ }
+ }
+
+ for (var j = 0; j < moduleImagePanel.length; j++) {
+ countnumber=countnumber+1;
+ var paneld=moduleImagePanel[j].id;
+
+ var len = (paneld).split("_").length;
+ var MultiWinId = (paneld).split("_")[len - 1];
+ $rootScope.orientationchangeToNormal(MultiWinId);
+
+ //set max tiles 3 on screen width
+ if(countnumber>1 && countnumber<4)
+ {
+ pLeft = pLeft+resetWidth+5;
+ }
+ else if(countnumber>=4)
+ {
+ countreset=countreset+1;
+ countnumber=1;
+ pTop = 55+5+countreset*520;
+ pLeft = 1;
+ if($location.url()== "/curriculum-builder-detail") {
+ pTop = 35+5+countreset*520;
+ pLeft = 1;
+ }
- if (paneltopPosition < pTop) {
- paneltopPosition = pTop+20;
+ }
+
+ $("#"+paneld+" .jsPanel-hdr .jsPanel-title").css('width','300px');// remove extra tile width
+ $("#"+paneld).css('width',resetWidth);
+ $("#"+paneld+' .jsPanel-content').css('width',resetWidth);
+
+ $("#"+paneld).css('top',pTop);
+ $("#"+paneld).css('left',pLeft);
+
+ $("#"+paneld).css('z-index',j+1000);
+ $scope.resetPanelPosition(MultiWinId,paneld,resetWidth,pTop,pLeft);
}
}
+
}
- else {
- // first panel
- paneltopPosition = 610;
+
+ $scope.resetPanelPosition=function(MultiWinId,paneld,resetWidth,pTop,pLeft)
+ {
+ $rootScope.UnsaveCurriculum = true;
+
+ if(paneld.match("daImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+
+ $('#canvasDivDA_' + MultiWinId).css('height', '440');
+ $rootScope.SetDAwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetDAwindowData(MultiWinId,'height',520);
+ $rootScope.SetDAwindowData(MultiWinId,'y',pTop);
+ $rootScope.SetDAwindowData(MultiWinId,'x',pLeft);
+
+ }
+ else if(paneld.match("AAImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+
+ $('#canvasAADiv_' + MultiWinId).css('height', '440');
+ $rootScope.SetAAwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetAAwindowData(MultiWinId,'height',520);
+ $rootScope.SetAAwindowData(MultiWinId,'y',pTop);
+ $rootScope.SetAAwindowData(MultiWinId,'x',pLeft);
+ }
+ else if(paneld.match("ciImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+
+ $('#canvasDivCI_' + MultiWinId).css('height', '490');
+ $rootScope.SetCIwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetCIwindowData(MultiWinId,'height',520);
+ $rootScope.SetCIwindowData(MultiWinId,'y',pTop);
+ $rootScope.SetCIwindowData(MultiWinId,'x',pLeft);
+ }
+ else if(paneld.match("aiImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+
+ $('#canvasDivAI_' + MultiWinId).css('height', '485');
+ $rootScope.SetAIwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetAIwindowData(MultiWinId,'height',520);
+ $rootScope.SetAIwindowData(MultiWinId,'y',pTop);
+ $rootScope.SetAIwindowData(MultiWinId,'x',pLeft);
+ }
+ else if(paneld.match("picImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+
+ $('#canvasDivPIC_' + MultiWinId).css('height', '485');
+ $rootScope.SetPICwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetPICwindowData(MultiWinId,'height',520);
+ $rootScope.SetPICwindowData(MultiWinId,'y',pTop);
+ $rootScope.SetPICwindowData(MultiWinId,'x',pLeft);
+ }
+ else if(paneld.match("ThreeDImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+ $('#thContentDiv_'+ MultiWinId ).css("height",'490');
+
+ $rootScope.Set3DwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.Set3DwindowData(MultiWinId,'height',520);
+ $rootScope.Set3DwindowData(MultiWinId,'y',pTop);
+ $rootScope.Set3DwindowData(MultiWinId,'x',pLeft);
+
+ }
+ else if(paneld.match("caImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+ $('#playerinlineVideo_'+ MultiWinId ).css("height",370 );
+
+ $rootScope.SetCAwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetCAwindowData(MultiWinId,'height',520);
+ $rootScope.SetCAwindowData(MultiWinId,'y',pTop);
+ $rootScope.SetCAwindowData(MultiWinId,'x',pLeft);
+
}
+ else if(paneld.match("vidImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+ $('#playerinlineVideo_'+ MultiWinId ).css("height",490 );
+
+ $rootScope.SetVideowindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetVideowindowData(MultiWinId,'height',520);
+ $rootScope.SetVideowindowData(MultiWinId,'y',pTop);
+ $rootScope.SetVideowindowData(MultiWinId,'x',pLeft);
+
+ }
+ else if(paneld.match("labImagePanel"))
+ {
+ $("#"+paneld).css('height','520');
+ $("#"+paneld+' .jsPanel-content').css('height','490');
+ $('#LabView_' + MultiWinId).css('height', 505);
+ $('#panelbodyDiv_' + MultiWinId).css("height",380);
+ $rootScope.SetLabwindowData(MultiWinId,'width',resetWidth);
+ $rootScope.SetLabwindowData(MultiWinId,'height',520);
+ $rootScope.SetLabwindowData(MultiWinId,'y',pTop);
+ $rootScope.SetLabwindowData(MultiWinId,'x',pLeft);
+
+ }
+
+ }
- return paneltopPosition;
- }
$rootScope.disableTopMenuOption=function()
{
$("#annotationButton").addClass("disableMenuoption");
@@ -2938,7 +3262,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$rootScope.SetPaintZindexforDA(MultiWinId);
}
- else if(paneld.match("AAImagePanel"))
+
+ if(paneld.match("AAImagePanel"))
{
$rootScope.aaAnnotationToolEvent(MultiWinId);
var canvasZIndex = $("#canvasAA_" + MultiWinId).css("z-index");
@@ -2955,30 +3280,24 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
}
- else if(paneld.match("ciImagePanel"))
+
+ if(paneld.match("ciImagePanel"))
{
- $rootScope.ciAnnotationToolEvent(MultiWinId);
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.ciAnnotationToolEvent(MultiWinId);
+ $rootScope.SetPaintZindexforCI(MultiWinId);
+
}
- else if(paneld.match("aiImagePanel"))
+
+ if(paneld.match("aiImagePanel"))
{
$rootScope.aiAnnotationToolEvent(MultiWinId);
+ $rootScope.SetPaintZindexforAI(MultiWinId);
}
- else if(paneld.match("picImagePanel"))
+
+ if(paneld.match("picImagePanel"))
{
$rootScope.picAnnotationToolEvent(MultiWinId);
+ $rootScope.SetPaintZindexforPIC(MultiWinId);
}
var PanelElement= $scope.GetPanelElement(paneld);
@@ -3030,15 +3349,15 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
var $ua = navigator.userAgent;
if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {
- var drawCanvasZindex = $("#canvasDA_" + MultiWinId).css("z-index");
- var paintCanvasZindex = $("#canvasPaintDA_" + MultiWinId).css("z-index");
+ var drawCanvasZindex = parseInt($("#canvasDA_" + MultiWinId).css("z-index"));
+ var paintCanvasZindex = parseInt($("#canvasPaintDA_" + MultiWinId).css("z-index"));
if (drawCanvasZindex > paintCanvasZindex) {
- paintCanvasZindex = parseInt(drawCanvasZindex) + 1;
+ paintCanvasZindex = drawCanvasZindex + 1;
}
else
{
- paintCanvasZindex = parseInt(paintCanvasZindex) + 1;
+ paintCanvasZindex = paintCanvasZindex + 1;
}
$("#canvasPaintDA_" + MultiWinId).css("z-index", paintCanvasZindex);
@@ -3049,6 +3368,73 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
}
+ // keep on top paint Canvas zindex on top
+ $rootScope.SetPaintZindexforAI = function (MultiWinId)
+ {
+ //scroll issue in iPad
+ var $ua = navigator.userAgent;
+ if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {
+
+ var drawCanvasZindex = parseInt($("#canvasAI_" + MultiWinId).css("z-index"));
+ var paintCanvasZindex = parseInt($("#canvasPaintAI_" + MultiWinId).css("z-index"));
+
+ if (drawCanvasZindex > paintCanvasZindex) {
+ paintCanvasZindex = drawCanvasZindex + 1;
+ }
+ else
+ {
+ paintCanvasZindex = paintCanvasZindex + 1;
+ }
+
+ $("#canvasPaintAI_" + MultiWinId).css("z-index", paintCanvasZindex);
+ }
+ }
+
+ // keep on top paint Canvas zindex on top
+ $rootScope.SetPaintZindexforPIC = function (MultiWinId)
+ {
+ //scroll issue in iPad
+ var $ua = navigator.userAgent;
+ if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {
+
+ var drawCanvasZindex = parseInt($("#canvasPIC_" + MultiWinId).css("z-index"));
+ var paintCanvasZindex = parseInt($("#canvasPaintPIC_" + MultiWinId).css("z-index"));
+
+ if (drawCanvasZindex > paintCanvasZindex) {
+ paintCanvasZindex = drawCanvasZindex + 1;
+ }
+ else
+ {
+ paintCanvasZindex = paintCanvasZindex + 1;
+ }
+
+ $("#canvasPaintPIC_" + MultiWinId).css("z-index", paintCanvasZindex);
+ }
+ }
+
+ // keep on top paint Canvas zindex on top
+ $rootScope.SetPaintZindexforCI = function (MultiWinId)
+ {
+ var drawCanvasZindex = parseInt($("#canvasCI_" + MultiWinId).css("z-index"));
+ var paintCanvasZindex = parseInt($("#canvasPaintCI_" + MultiWinId).css("z-index"));
+
+ if (drawCanvasZindex > paintCanvasZindex) {
+ paintCanvasZindex = drawCanvasZindex + 1;
+ }
+ else
+ {
+ paintCanvasZindex = paintCanvasZindex + 1;
+ }
+
+ //scroll issue in iPad
+ var $ua = navigator.userAgent;
+ if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {
+ $("#canvasPaintCI_" + MultiWinId).css("z-index", paintCanvasZindex);
+ }
+
+ $('#summary_' + MultiWinId).css("z-index", paintCanvasZindex+1);
+
+ }
$rootScope.CloseAnnotationTool = function () {
console.log('close');
@@ -3141,19 +3527,17 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
+ }
+
+ if(paneld.match("aiImagePanel"))
+ {
+ $rootScope.SetPaintZindexforAI(MultiWinId);
+ }
+
+ if(paneld.match("picImagePanel"))
+ {
+ $rootScope.SetPaintZindexforPIC(MultiWinId);
}
}
@@ -3250,21 +3634,19 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
+ if(paneld.match("aiImagePanel"))
+ {
+ $rootScope.SetPaintZindexforAI(MultiWinId);
+ }
+
+ if(paneld.match("picImagePanel"))
+ {
+ $rootScope.SetPaintZindexforPIC(MultiWinId);
+ }
+
// remove event listener
var PanelElement= $scope.GetPanelElement(paneld);
var canvasElement = PanelElement.canvasElement;
@@ -3356,19 +3738,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
// remove event listener
@@ -3443,19 +3813,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
$scope.onDrawingCanvasOnModule(canvasElement);
@@ -3528,18 +3886,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
@@ -3581,19 +3928,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
// remove event listener
@@ -3646,19 +3981,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
$scope.onDrawingCanvasOnModule(canvasElement);
@@ -3744,19 +4067,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
// remove event listener
$scope.removeOnDrawingCanvas(canvasElement);
@@ -3793,19 +4104,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$rootScope.switchCanvasToPaintCanvas(paneld);
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
$('#' + canvasPaintId).sketch();
@@ -3972,19 +4271,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
$scope.onDrawingCanvasOnModule(canvasElement);
@@ -4034,19 +4321,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
$scope.onDrawingCanvasOnModule(canvasElement);
@@ -4095,19 +4370,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
$scope.onDrawingCanvasOnModule(canvasElement);
@@ -4155,19 +4418,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
$scope.onDrawingCanvasOnModule(canvasElement);
@@ -4268,19 +4519,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
if(paneld.match("ciImagePanel"))
{
- var canvasZIndex = $("#canvasCI_" + MultiWinId).css("z-index");
- var canvasPaintZIndex = $("#canvasPaintCI_" + MultiWinId).css("z-index");
-
- if (parseInt(canvasZIndex) < parseInt(canvasPaintZIndex)) {
- canvasPaintZIndex = parseInt(canvasPaintZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasPaintZIndex);
-
- }
- else {
- canvasZIndex = parseInt(canvasZIndex) + 1;
- $('#summary_' + MultiWinId).css("z-index", canvasZIndex);
- }
-
+ $rootScope.SetPaintZindexforCI(MultiWinId);
}
}
}
@@ -8270,20 +8509,14 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
setting.modesty =Formatsetting.modesty ;
setting.skintone = Formatsetting.ethnicity;
- // var isallowToChange=false;
if($rootScope.userData.isSiteUser)
{
// send as user id
setting.userId = $rootScope.userData.siteId;
- //isallowToChange=$rootScope.userData.EditionId<3;
}
else
{
setting.userId = $rootScope.userData.Id;
- //concurrent license
- // only instructor
- //if($rootScope.userData.LicenseId!=0)
- // isallowToChange=$rootScope.userData.EditionId<3;
}
@@ -8300,8 +8533,6 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
setting.isSiteUser=$rootScope.userData.isSiteUser;
setting.LicenseEditionId=$rootScope.userData.LicenseEditionId;
- // if(isallowToChange ||$rootScope.userData.LicenseId==0)
- // {
AuthenticationService.saveSetings(setting)
.then(
function (result) {
@@ -8319,7 +8550,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
else
{
- $rootScope.errorMessage =AIAConstants.SETTING_SAVE_ERROR;
+ $('#errorMessage').text(AIAConstants.SETTING_SAVE_ERROR);
$("#messageModal").modal('show');
}
@@ -8331,23 +8562,10 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$('#modal-settings').css("display", "none");
$('#modelsettingsbackground').css('z-index', '12000000');
$("#modelsettingsbackground").css("display", "none");
- $rootScope.errorMessage = error;
+ $('#errorMessage').text(error);
$("#messageModal").modal('show');
}
- // }
- // else
- // {
- // $timeout(function () {
- // $('#setting-spinner').css('visibility', 'hidden');
- // $('#modal-settings').css("display", "none");
- // $('#modelsettingsbackground').css('z-index', '12000000');
- // $("#modelsettingsbackground").css("display", "none");
- // $rootScope.UpdateSetting(Formatsetting);
-
- // }, 500);
-
- // }
-
+
};
@@ -8605,6 +8823,8 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
};
$rootScope.ShowPrintWindow = function () { // Print Active Viewer
+ $scope.Totalpage=0;
+ $scope.pageCount=0;
if ($('#printDivContent').html() != "") {
$('#printDivContent').empty();
@@ -8618,14 +8838,9 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
if (canvasDivElement == null || canvasDivElement == undefined) return;
var canvasDivId = canvasDivElement.id;
-
+ $scope.Totalpage=1;
CollectPrintData(canvasDivId, 1, panelTitle);
-
- $timeout(function () {
- SetFrameToPrint();
- }, 500);
-
};
@@ -8636,14 +8851,18 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
}
var multiprint = function (canvasId, page, title, delaytime) {
+
$timeout(function () { CollectPrintData(canvasId, page, title) }, delaytime);
};
var pageno = 0;
+ $scope.Totalpage=0;
+ $scope.pageCount=0;
// select all open module div.
var modulePanel = $("#HomeContainerDiv").find("div[id*='ImagePanel']").not("div[id*='caImagePanel']").not("div[id*='ThreeDImagePanel']").not("div[id*='labImagePanel']").not("div[id*='vidImagePanel']");
- for (var i = 0 ; i < modulePanel.length; i++) {
+ $scope.Totalpage=modulePanel.length;
+ for (var i = 0 ; i < $scope.Totalpage; i++) {
var paneld = modulePanel[i].id;
@@ -8655,21 +8874,11 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
var canvasDivId = canvasDivElement.id;
var panelTitle = document.getElementById(paneld).childNodes[0].innerText;
- var timeintrval = pageno * 400;
+ pageno = pageno + 1;
+ var timeintrval = pageno * 200;
multiprint(canvasDivId, pageno, panelTitle,timeintrval);
- if(pageno==modulePanel.length-1)
- {
- $timeout(function () {
- // working for all device
- SetFrameToPrint();
-
- }, pageno * 400+500);
-
- }
- pageno = pageno + 1;
-
}
}
@@ -8681,6 +8890,23 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
html2canvas($("#" + canvasDivId), {
onrendered: function (canvas) {
var dataURL = canvas.toDataURL("image/jpeg");
+ if (canvas.id.match("canvasDivDA")) {
+ var curModule = 'DISSECTIBLE_ANATOMY';
+ }
+ else if (canvas.id.match("canvasAADiv")) {
+ var curModule = 'ATLAS_ANATOMY';
+ }
+ else if (canvas.id.match("canvasDivCI")) {
+ var curModule = 'CLINICAL_ILLUSTRATIONS';
+ }
+ else if (canvas.id.match("canvasDivAI")) {
+ var curModule = 'ADAM_IMAGES';
+ }
+ else if (canvas.id.match("canvasDivPIC")) {
+ var curModule = 'MY_PICTURES';
+ }
+
+ $scope.pageCount= $scope.pageCount+1;
if (pageno == 1) {
$('#printDivContent').append("
");
@@ -8694,15 +8920,21 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data
$('#image_preview' + pageno).append("