From 716861f24d02ef1a32abc0a322ed838753858077 Mon Sep 17 00:00:00 2001 From: Birendra Date: Mon, 22 Mar 2021 18:01:07 +0530 Subject: [PATCH] fix panel min,max issue --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js | 12 ++++++------ 400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js | 26 +++++++++++++++----------- 400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js | 13 +++++++------ 400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js | 23 +++++++++++------------ 400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js | 4 ++-- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 56 ++++++++++++++++++-------------------------------------- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 9 +++++---- 400-SOURCECODE/AIAHTML5.Web/app/controllers/MyAnimationController.js | 7 ++++--- 400-SOURCECODE/AIAHTML5.Web/app/controllers/MyPictureController.js | 18 ++++++++++-------- 400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js | 31 ++++++++++++++----------------- 400-SOURCECODE/AIAHTML5.Web/index.aspx | 10 +++++----- 400-SOURCECODE/AIAHTML5.Web/libs/jquery/jquery_plugin/jsPanel/jspanel/jquery.jspanel.js | 114 ++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------- 13 files changed, 207 insertions(+), 256 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js index 05f20a4..4eacf2c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js @@ -17,7 +17,7 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location 'width': 0, 'height': 0, 'minimised': false, - 'maximised': false, + 'maximised': true, 'minmaxAutoEvent':true, }; @@ -356,9 +356,9 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location $scope.Set3DwindowStoreData(windowviewid, 'currentViewTitle', ThreeDTitle); localStorage.setItem("currentViewTitle", ThreeDTitle); - var isMaximize = $scope.ThreeDOpenInOtherModules.maximised; - var isMinimize = $scope.ThreeDOpenInOtherModules.minimised; - + var isMaximize = $scope.ThreeDOpenInOtherModules.maximised!=undefined?$scope.ThreeDOpenInOtherModules.maximised:false; + var isMinimize = $scope.ThreeDOpenInOtherModules.minimised!=undefined?$scope.ThreeDOpenInOtherModules.minimised:false; + $scope.Set3DwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.Set3DwindowStoreData(windowviewid, 'minimised', isMinimize); if($location.url()== "/curriculum-builder-detail") { @@ -421,7 +421,7 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location } else { $scope.jsPanelWidth = $(window).outerWidth() - 20; - $scope.jsPanelHeight = $(window).outerHeight() - 105; + $scope.jsPanelHeight = $(window).outerHeight() - 90; $scope.jsPanelLeft = 1; $scope.jsPanelTop = 70; } @@ -435,7 +435,7 @@ function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location theme: 'success', currentController: '3dAController', parentSlug: $scope.Get3DwindowStoreData(windowviewid, 'parentSlugName'), - content: '
' + + content: '
' + '' + '
', title: tittle, diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js index c7a8c5d..ca65a6b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js @@ -77,7 +77,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout 'width': 0, 'height': 0, 'minimised': false, - 'maximised': false, + 'maximised': true, 'minmaxAutoEvent':true, 'annotationData':{shapeStates:[],paintCanvasState:[]}, }; @@ -1105,8 +1105,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $scope.SetAIwindowStoreData(windowviewid, 'currentViewTitle', aiTitle); localStorage.setItem("currentViewTitle", aiTitle); - var isMaximize = $scope.aiOpenInOtherModules.maximised; - var isMinimize = $scope.aiOpenInOtherModules.minimised; + var isMaximize = $scope.aiOpenInOtherModules.maximised!=undefined?$scope.aiOpenInOtherModules.maximised:false; + var isMinimize = $scope.aiOpenInOtherModules.minimised!=undefined?$scope.aiOpenInOtherModules.minimised:false; + $scope.SetAIwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetAIwindowStoreData(windowviewid, 'minimised', isMinimize); @@ -1168,9 +1169,10 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout } else { $scope.jsPanelWidth = $(window).innerWidth() - 30; - $scope.jsPanelHeight = $(window).innerHeight() - 150; + $scope.jsPanelHeight =$(window).innerHeight() - 150; $scope.jsPanelLeft = 15; $scope.jsPanelTop = 70; + } if (selectedAIImage.length > 0) { @@ -1217,6 +1219,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $scope.SetAIwindowStoreData(windowviewid, 'minimised',false); var canvasDIvHeight = $('#aiImagePanel_' + windowviewid+ " .jsPanel-content").height(); $('#canvasDivAI_' + windowviewid).css('height', canvasDIvHeight-5); + }, onnormalized:function (panel) { var isAutoCalled = $scope.GetAIwindowStoreData(windowviewid, 'minmaxAutoEvent'); @@ -1228,7 +1231,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $scope.SetAIwindowStoreData(windowviewid, 'maximised',false); var canvasDIvHeight = $('#aiImagePanel_' + windowviewid+ " .jsPanel-content").height(); $('#canvasDivAI_' + windowviewid).css('height', canvasDIvHeight-5); - }, + }, resizable: { stop: function (event, ui) { var len = (event.currentTarget.id).split("_").length; @@ -1276,10 +1279,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $('.jsPanel-content .jsPanel-theme-success').css('overflow-y', 'auto !important') var canvasDIvHeight = $('#aiImagePanel_' + windowviewid+ " .jsPanel-content").height(); // console.log($rootScope.OpenAdamImages); - $('#AIView').css("height", $(window).innerHeight()-100); - - $('#AIView').css("width",$(window).innerWidth()-100); - + if (!$rootScope.isCallFromOtherModule) { + $('#AIView').css("height", $(window).innerHeight()-100); + $('#AIView').css("width",$(window).innerWidth()-100); + } + $('#canvasDivAI_' + windowviewid).css('height', canvasDIvHeight-5); if (!$rootScope.isCallFromOtherModule) { @@ -1376,8 +1380,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $rootScope.resetMenuOption(); //remove pre event - $("#aiImagePanel_" + windowviewid).off("click"); - + // $("#aiImagePanel_" + windowviewid).off("click"); + $("#aiImagePanel_" + windowviewid).on('click', function (event) { //after drawing annotation click not work on iPad/Android device var pnlName = event.currentTarget.id; diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js index dd5b8f8..997edc0 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js @@ -63,7 +63,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout 'width': 0, 'height': 0, 'minimised': false, - 'maximised': false, + 'maximised': true, 'minmaxAutoEvent':true, }; return windata; @@ -878,8 +878,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $scope.SetCAwindowStoreData(windowviewid, 'currentViewTitle', ciTitle); localStorage.setItem("currentViewTitle", ciTitle); - var isMaximize = $scope.caOpenInOtherModules.maximised; - var isMinimize = $scope.caOpenInOtherModules.minimised; + var isMaximize = $scope.caOpenInOtherModules.maximised!=undefined?$scope.caOpenInOtherModules.maximised:false; + var isMinimize = $scope.caOpenInOtherModules.minimised!=undefined?$scope.caOpenInOtherModules.minimised:false; + $scope.SetCAwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetCAwindowStoreData(windowviewid, 'minimised', isMinimize); @@ -940,7 +941,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout if ($rootScope.isCallFromOtherModule) { if($rootScope.linkToOpenCa==true) { - $scope.jsPanelWidth = $(window).outerWidth() - 20; + $scope.jsPanelWidth = $(window).outerWidth() - 10; $scope.jsPanelHeight = $(window).outerHeight() - 105; $scope.jsPanelLeft = 1; $scope.jsPanelTop = 70; @@ -972,7 +973,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout } else { - $scope.jsPanelWidth = $(window).outerWidth() - 20; + $scope.jsPanelWidth = $(window).outerWidth()-30; $scope.jsPanelHeight = $(window).outerHeight() - 105; $scope.jsPanelLeft = 1; $scope.jsPanelTop = 70; @@ -1163,7 +1164,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $rootScope.resetMenuOption(); // call from while open module in CB //remove pre event - $("#caImagePanel_" + windowviewid).off("click"); + // $("#caImagePanel_" + windowviewid).off("click"); $("#caImagePanel_" + windowviewid).on('click', function (event) { //after drawing annotation click not work on iPad/Android device diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js index 4f182d8..9cbe59b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js @@ -73,7 +73,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout 'width': 0, 'height': 0, 'minimised': false, - 'maximised': false, + 'maximised': true, 'minmaxAutoEvent':true, 'annotationData':{shapeStates:[],paintCanvasState:[]}, @@ -891,9 +891,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout var ciTitle = $scope.ciOpenInOtherModules.anatomyTitle; $scope.SetCIwindowStoreData(windowviewid, 'currentViewTitle', ciTitle); localStorage.setItem("currentViewTitle", ciTitle); + var isMaximize = $scope.ciOpenInOtherModules.maximised!=undefined?$scope.ciOpenInOtherModules.maximised:false; + var isMinimize = $scope.ciOpenInOtherModules.minimised!=undefined?$scope.ciOpenInOtherModules.minimised:false; - var isMaximize = $scope.ciOpenInOtherModules.maximised; - var isMinimize = $scope.ciOpenInOtherModules.minimised; $scope.SetCIwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetCIwindowStoreData(windowviewid, 'minimised', isMinimize); @@ -956,8 +956,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout } else { - $scope.jsPanelWidth = $(window).outerWidth() - 15; - $scope.jsPanelHeight = $(window).outerHeight() - 140; + $scope.jsPanelWidth = $(window).outerWidth() - 30; + $scope.jsPanelHeight = $(window).outerHeight() - 150; $scope.jsPanelLeft = 15; $scope.jsPanelTop = 70; } @@ -971,12 +971,12 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout content:'
'+ '
'+ '
'+ - '
' + + '
' + //'
' + '' + '
' + '

' + selectedImageCISummary + '

' + - '
' + + '
' + '
'+ '
', title: tittle, @@ -1075,12 +1075,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $scope.SetCIwindowStoreData(windowviewid, 'currentSlug', 'clinical-illustrations-detail'); - $timeout(function () { - + $timeout(function () { var canvasDIvHeight = $('#ciImagePanel_' + windowviewid+ " .jsPanel-content").height(); - + $('#canvasDivCI_' + windowviewid).css('height', canvasDIvHeight); - + if (!$rootScope.isCallFromOtherModule) { $('#CIView').css("height", $(window).outerHeight() - 65); $('#CIView').css("width", $(window).outerWidth() - 15); @@ -1212,7 +1211,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout //call when module loaded $rootScope.resetMenuOption(); //remove pre event - $("#ciImagePanel_" + windowviewid).off("click"); + //$("#ciImagePanel_" + windowviewid).off("click"); $("#ciImagePanel_" + windowviewid).on('click', function (event) { //after drawing annotation click not work on iPad/Android device diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js index 2f71c34..1aed23f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js @@ -37,8 +37,8 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ } else { - $("#treecontent").css('height',screen.height-250); - $("#cbdivarea").css('height',screen.height-180); + $("#treecontent").css('height',screen.height-280); + $("#cbdivarea").css('height',screen.height-210); } $('#sidebar-wrapper').unbind('click'); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index a43b91b..07f6214 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -132,7 +132,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l 'width': 0, 'height': 0, 'minimised': false, - 'maximised': false, + 'maximised': true, 'minmaxAutoEvent':true, 'id': 0, 'moduleName': 'DISSECTIBLE_ANATOMY', @@ -754,8 +754,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l //// one layer down as compare to current running on production $scope.SetwindowStoreData(windowviewid, 'layerNumber', $scope.daOpenInOtherModules.layerNumber - 1); - var isMaximize = $scope.daOpenInOtherModules.maximised; - var isMinimize = $scope.daOpenInOtherModules.minimised; + var isMaximize = $scope.daOpenInOtherModules.maximised!=undefined?$scope.daOpenInOtherModules.maximised:false; + var isMinimize = $scope.daOpenInOtherModules.minimised!=undefined?$scope.daOpenInOtherModules.minimised:false; + $scope.SetwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetwindowStoreData(windowviewid, 'minimised', isMinimize); $scope.SetwindowStoreData(windowviewid, 'moduleName', "DISSECTIBLE_ANATOMY"); @@ -984,13 +985,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } $scope.SetwindowStoreData(windowviewid, 'maximised',true); $scope.SetwindowStoreData(windowviewid, 'minimised',false); - if ($rootScope.isCallFromOtherModule) { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-95; - } - else - { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; - } + var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; + $('#canvasDivDA_' + windowviewid).css('height', canvasDIvHeight); }, onnormalized:function (panel) { @@ -1001,14 +997,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l } $scope.SetwindowStoreData(windowviewid, 'minimised',false); $scope.SetwindowStoreData(windowviewid, 'maximised',false); - if ($rootScope.isCallFromOtherModule) { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-95; - } - else - { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-60; - - } + var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; + $('#canvasDivDA_' + windowviewid).css('height', canvasDIvHeight); }, resizable: { @@ -1017,14 +1007,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l var windowviewid = (event.currentTarget.id).split("_")[len - 1]; $scope.SetwindowStoreData(windowviewid, 'width', ui.size.width); $scope.SetwindowStoreData(windowviewid, 'height', ui.size.height); - $rootScope.UnsaveCurriculum = true; - if ($rootScope.isCallFromOtherModule) { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-95; - } - else - { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; - } + $rootScope.UnsaveCurriculum = true; + var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; + $('#canvasDivDA_' + windowviewid).css('height', canvasDIvHeight); } @@ -1197,10 +1182,11 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.loadDAView = function (currentBodyViewId, windowviewid) { //0.4 added some stylesheets - $('#daBodyview').css("height", (parseInt($(window).outerHeight()) - 62 - 20)); - - $('#daBodyview').css("width", $(window).outerWidth()); - + if (!$rootScope.isCallFromOtherModule) { + $('#daBodyview').css("height", (parseInt($(window).outerHeight()) - 82)); + $('#daBodyview').css("width", $(window).outerWidth()); + } + $scope.SetwindowStoreData(windowviewid,'voId',currentBodyViewId); //1. load navigator man first console.log('before LoadBodyViewNavigatorImage call') @@ -1254,7 +1240,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $rootScope.resetMenuOption(); //remove pre event - $("#daImagePanel_" + windowviewid).off("click"); + // $("#daImagePanel_" + windowviewid).off("click"); $("#daImagePanel_" + windowviewid).on('click', function (event) { @@ -2113,13 +2099,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.SetwindowStoreData(windowviewid,'BodyRegionCordinatesData',[]); $('#daBodyview').css('width', '100%'); - if ($rootScope.isCallFromOtherModule) { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-95; - } - else - { - var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-45; - } + var canvasDIvHeight = $('#daImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; $('#canvasDivDA_' + windowviewid).css('height', canvasDIvHeight); $('#leftToolBarDA_' + windowviewid).css('height', $('#daImagePanel_' + windowviewid).outerHeight()) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index c8599fc..7bea324 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -9050,18 +9050,26 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data } + $rootScope.CloseExportModal = function () { + + $(".modal-backdrop").css("opacity", "0"); + $(".modal-backdrop").css("z-index", "0"); + $("#exportfilename").val(""); + $("#filename_open").val(""); + $(".export-image").modal("hide"); + $(".export-image-ipad").modal("hide"); + } $rootScope.SaveImagefile = function () { // select one module from multiple var PanelElement= $scope.GetPanelElement($rootScope.panelNameWithCb); - var canvasDiv = PanelElement.canvasDivElement; if (canvasDiv == null || canvasDiv == undefined) return; var canvasDivId = canvasDiv.id; + var fileName = $("#exportfilename").val() + '.jpg'; $("#" + canvasDivId).append(""); html2canvas($("#" + canvasDivId), { - onrendered: function (canvas) { - var fileName = document.getElementById("filename").value + '.jpg'; + onrendered: function (canvas) { if (typeof (fileName) == "undefined" || fileName == ".jpg") fileName = "Untitled.jpg" @@ -9075,7 +9083,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data console.log(blob); saveAs(blob, fileName); $("#exportlogo").remove(); - $("#filename").val(""); + $("#exportfilename").val(""); var imageInfo=$rootScope.UserImageExportData[0]; @@ -9083,70 +9091,70 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data .then( function (result) { - if ($rootScope.DaWindowData != undefined && $rootScope.DaWindowData.length > 0) { - for (var i = 0; i < $rootScope.DaWindowData.length; i++) { - $scope.updatedWindowListForSaveCB={ + // if ($rootScope.DaWindowData != undefined && $rootScope.DaWindowData.length > 0) { + // for (var i = 0; i < $rootScope.DaWindowData.length; i++) { + // $scope.updatedWindowListForSaveCB={ - // bodySystemTermList: $rootScope.DaWindowData[i].BodySystemData, - isTitleBarVisible: false, - highlightOptionsSelectedId: 0, - selectedStructureID: 0,//N - contentDescriptorId: 0, - callOuts: $rootScope.DaWindowData[i].CurriculumTermData, - - layerNumber: parseInt($rootScope.DaWindowData[i].layerNumber) + 1, - isModestyOn: $rootScope.DaWindowData[i].ModestyValue, + // // bodySystemTermList: $rootScope.DaWindowData[i].BodySystemData, + // isTitleBarVisible: false, + // highlightOptionsSelectedId: 0, + // selectedStructureID: 0,//N + // contentDescriptorId: 0, + // callOuts: $rootScope.DaWindowData[i].CurriculumTermData, + + // layerNumber: parseInt($rootScope.DaWindowData[i].layerNumber) + 1, + // isModestyOn: $rootScope.DaWindowData[i].ModestyValue, - isTopToolBarVisible: false, - clickedTermList: $rootScope.DaWindowData[i].fullTermlist, - minimised: $rootScope.DaWindowData[i].minimised, - windowTitle: $rootScope.DaWindowData[i].currentViewTitle, + // isTopToolBarVisible: false, + // clickedTermList: $rootScope.DaWindowData[i].fullTermlist, + // minimised: $rootScope.DaWindowData[i].minimised, + // windowTitle: $rootScope.DaWindowData[i].currentViewTitle, - maximised: $rootScope.DaWindowData[i].maximised, - size: { - width: $rootScope.DaWindowData[i].width, - height: $rootScope.DaWindowData[i].height - }, - id: $rootScope.DaWindowData[i].voId, + // maximised: $rootScope.DaWindowData[i].maximised, + // size: { + // width: $rootScope.DaWindowData[i].width, + // height: $rootScope.DaWindowData[i].height + // }, + // id: $rootScope.DaWindowData[i].voId, - imageId: $rootScope.DaWindowData[i].imageId, - position: { - top: $rootScope.DaWindowData[i].top, - left: $rootScope.DaWindowData[i].left, - }, - mType: $rootScope.DaWindowData[i].moduleName, - containsCapturedContent: true, + // imageId: $rootScope.DaWindowData[i].imageId, + // position: { + // top: $rootScope.DaWindowData[i].top, + // left: $rootScope.DaWindowData[i].left, + // }, + // mType: $rootScope.DaWindowData[i].moduleName, + // containsCapturedContent: true, - zoom: $rootScope.DaWindowData[i].zoomInOut, - skinId: $rootScope.DaWindowData[i].curentEthnicity, - isResizeLock: false , //N - mode: $rootScope.DaWindowData[i].mode, - windowListId: 0,//N - canvasVScrollX: $rootScope.DaWindowData[i].CanvasDivTopPosition, - canvasHScrollX: $rootScope.DaWindowData[i].CanvasDivLeftPosition, - isCallOutVisible: false, - annotationData:$rootScope.DaWindowData[i].annotationData, - isLeftToolBarVisible: false, - isModuleLoaded: false, - searchSelectedText: $rootScope.DaWindowData[i].searchSelectedText, - prevId: $rootScope.DaWindowData[i].prevId, + // zoom: $rootScope.DaWindowData[i].zoomInOut, + // skinId: $rootScope.DaWindowData[i].curentEthnicity, + // isResizeLock: false , //N + // mode: $rootScope.DaWindowData[i].mode, + // windowListId: 0,//N + // canvasVScrollX: $rootScope.DaWindowData[i].CanvasDivTopPosition, + // canvasHScrollX: $rootScope.DaWindowData[i].CanvasDivLeftPosition, + // isCallOutVisible: false, + // annotationData:$rootScope.DaWindowData[i].annotationData, + // isLeftToolBarVisible: false, + // isModuleLoaded: false, + // searchSelectedText: $rootScope.DaWindowData[i].searchSelectedText, + // prevId: $rootScope.DaWindowData[i].prevId, - isTransparent: $rootScope.DaWindowData[i].isTransparent, - transparencyBounds: $rootScope.DaWindowData[i].transparencyBounds, - transparencyValue: $rootScope.DaWindowData[i].transNumber, - layerNumberTransparency: $rootScope.DaWindowData[i].layerNumberTransparency, - transparencyX: $rootScope.DaWindowData[i].transparencyX, - transparencyY: $rootScope.DaWindowData[i].transparencyY, - layerNumberBeforeTBDraw: $rootScope.DaWindowData[i].layerNumberBeforeTBDraw, - showHideAnnotations: $rootScope.DaWindowData[i].showHideAnnotations + // isTransparent: $rootScope.DaWindowData[i].isTransparent, + // transparencyBounds: $rootScope.DaWindowData[i].transparencyBounds, + // transparencyValue: $rootScope.DaWindowData[i].transNumber, + // layerNumberTransparency: $rootScope.DaWindowData[i].layerNumberTransparency, + // transparencyX: $rootScope.DaWindowData[i].transparencyX, + // transparencyY: $rootScope.DaWindowData[i].transparencyY, + // layerNumberBeforeTBDraw: $rootScope.DaWindowData[i].layerNumberBeforeTBDraw, + // showHideAnnotations: $rootScope.DaWindowData[i].showHideAnnotations - } - } + // } + // } - } + // } - localStorage.setItem("daDataObject",JSON.stringify($scope.updatedWindowListForSaveCB) ); + //localStorage.setItem("daDataObject",JSON.stringify($scope.updatedWindowListForSaveCB) ); if(result!=null && result!="ADMIN" ) { var userid= $rootScope.userData.Id; @@ -9173,21 +9181,23 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data } }); - $(".export-image").css("display", "none"); + $(".modal-backdrop").css("opacity", "0"); + $(".modal-backdrop").css("z-index", "0"); + $(".export-image").modal("hide") }; $rootScope.SaveOpenImagefile = function () { // select one module from multiple var PanelElement= $scope.GetPanelElement($rootScope.panelNameWithCb); - + var fileName = $("#filename_open").val() + '.jpg'; var canvasDiv = PanelElement.canvasDivElement; if (canvasDiv == null || canvasDiv == undefined) return; var canvasDivId = canvasDiv.id; $("#" + canvasDivId).append(""); html2canvas($("#" + canvasDivId), { onrendered: function (canvas) { - var fileName = document.getElementById("filename_open").value + '.jpg'; + if (typeof (fileName) == "undefined" || fileName == ".jpg") fileName = "Untitled.jpg" @@ -9216,7 +9226,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data .then( function (result) { - localStorage.setItem("daDataObject",JSON.stringify($scope.updatedWindowListForSaveCB) ); + //localStorage.setItem("daDataObject",JSON.stringify($scope.updatedWindowListForSaveCB) ); if(result!=null && result!="ADMIN" ) { var userid= $rootScope.userData.Id; @@ -9243,8 +9253,10 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data } }); - $(".export-image-ipad").css("display", "none"); - + $(".modal-backdrop").css("opacity", "0"); + $(".modal-backdrop").css("z-index", "0"); + $(".export-image-ipad").modal("hide"); + }; }] diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index 7c39c6f..0f0e0a2 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -40,7 +40,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, 'width': 0, 'height': 0, 'minimised': false, - 'maximised': false, + 'maximised': true, 'minmaxAutoEvent':true, 'isLabExChanged':false @@ -311,8 +311,9 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, var keywords = $scope.leOpenInOtherModules.id; $scope.SetLEwindowStoreData(windowviewid, 'keywords', keywords); - var isMaximize = $scope.leOpenInOtherModules.maximised; - var isMinimize = $scope.leOpenInOtherModules.minimised; + var isMaximize = $scope.leOpenInOtherModules.maximised!=undefined?$scope.leOpenInOtherModules.maximised:false; + var isMinimize = $scope.leOpenInOtherModules.minimised!=undefined?$scope.leOpenInOtherModules.minimised:false; + ; $scope.SetLEwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetLEwindowStoreData(windowviewid, 'minimised', isMinimize); @@ -537,7 +538,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, $rootScope.resetMenuOption(); //remove pre event - $("#labImagePanel_" + windowviewid).off("click"); + // $("#labImagePanel_" + windowviewid).off("click"); $("#labImagePanel_" + windowviewid).on('click', function (event) { var pnlName = event.currentTarget.id; diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyAnimationController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyAnimationController.js index 77296c3..1c072de 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyAnimationController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyAnimationController.js @@ -213,8 +213,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout var aiTitle = $scope.VidOpenInOtherModules.anatomyTitle; $scope.SetVideowindowStoreData(windowviewid, 'currentViewTitle', aiTitle); localStorage.setItem("currentViewTitle", aiTitle); - var isMaximize = $scope.VidOpenInOtherModules.maximised; - var isMinimize = $scope.VidOpenInOtherModules.minimised; + var isMaximize = $scope.VidOpenInOtherModules.maximised!=undefined?$scope.VidOpenInOtherModules.maximised:false; + var isMinimize = $scope.VidOpenInOtherModules.minimised!=undefined?$scope.VidOpenInOtherModules.minimised:false; + $scope.SetVideowindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetVideowindowStoreData(windowviewid, 'minimised', isMinimize); @@ -447,7 +448,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $rootScope.resetMenuOption(); // call from while open module in CB //remove pre event - $("#vidImagePanel_" + windowviewid).off("click"); + // $("#vidImagePanel_" + windowviewid).off("click"); $("#vidImagePanel_" + windowviewid).on('click', function (event) { //after drawing annotation click not work on iPad/Android device diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyPictureController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyPictureController.js index 3c480f3..5e3f48d 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyPictureController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/MyPictureController.js @@ -224,8 +224,9 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout var aiTitle = $scope.picOpenInOtherModules.anatomyTitle; $scope.SetPICwindowStoreData(windowviewid, 'currentViewTitle', aiTitle); localStorage.setItem("currentViewTitle", aiTitle); - var isMaximize = $scope.picOpenInOtherModules.maximised; - var isMinimize = $scope.picOpenInOtherModules.minimised; + var isMaximize = $scope.picOpenInOtherModules.maximised!=undefined?$scope.picOpenInOtherModules.maximised:false; + var isMinimize = $scope.picOpenInOtherModules.minimised!=undefined?$scope.picOpenInOtherModules.minimised:false; + $scope.SetPICwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetPICwindowStoreData(windowviewid, 'minimised', isMinimize); @@ -281,7 +282,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout content: '
'+ '
'+ '
'+ - '
' + + '
' + '' + '
'+ '
', @@ -374,10 +375,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $('.jsPanel-content .jsPanel-theme-success').css('overflow-y', 'auto !important') - $('#PicView').css("height", $(window).outerHeight() - 65); - - $('#PicView').css("width", $(window).outerWidth() - 15); - + if (!$rootScope.isCallFromOtherModule) { + $('#PicView').css("height", $(window).outerHeight() - 65); + $('#PicView').css("width", $(window).outerWidth() - 15); + } + var canvasDIvHeight = $('#picImagePanel_' + windowviewid+ " .jsPanel-content").height(); $('#canvasDivPIC_' + windowviewid).css('height', canvasDIvHeight-5); @@ -433,7 +435,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $rootScope.resetMenuOption(); //remove pre event - $("#picImagePanel_" + windowviewid).off("click"); + // $("#picImagePanel_" + windowviewid).off("click"); $("#picImagePanel_" + windowviewid).on('click', function (event) { //after drawing annotation click not work on iPad/Android device diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 818f922..6505579 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -93,7 +93,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou 'width': 0, 'height': 0, 'minimised': false, - 'maximised': false, + 'maximised': true, 'minmaxAutoEvent':true, 'id': 0, 'selectedPins': [], @@ -508,10 +508,11 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.SetAAwindowStoreData(windowviewid, 'isShowSelectedPins', $scope.aaOpenInOtherModules.showSelectedPins); if ($scope.aaOpenInOtherModules.showHideAnnotations != undefined && $scope.aaOpenInOtherModules.showHideAnnotations != "") { $scope.SetAAwindowStoreData(windowviewid, 'showHideAnnotations', $scope.aaOpenInOtherModules.showHideAnnotations); - } - - var isMaximize = $scope.aaOpenInOtherModules.maximised; - var isMinimize = $scope.aaOpenInOtherModules.minimised; + } + + var isMaximize = $scope.aaOpenInOtherModules.maximised!=undefined?$scope.aaOpenInOtherModules.maximised:false; + var isMinimize = $scope.aaOpenInOtherModules.minimised!=undefined?$scope.aaOpenInOtherModules.minimised:false; + $scope.SetAAwindowStoreData(windowviewid, 'maximised', isMaximize); $scope.SetAAwindowStoreData(windowviewid, 'minimised', isMinimize); @@ -619,7 +620,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou } else { $scope.jsPanelWidth = $(window).outerWidth() - 20; - $scope.jsPanelHeight = $(window).outerHeight() - 150; + $scope.jsPanelHeight = $(window).outerHeight() - 140; $scope.jsPanelLeft = 1; $scope.jsPanelTop = 70; } @@ -663,7 +664,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou } $scope.SetAAwindowStoreData(windowviewid, 'maximised',true); $scope.SetAAwindowStoreData(windowviewid, 'minimised',false); - var canvasDIvHeight = $('#AAImagePanel_' + windowviewid+ " .jsPanel-content").height()-70; + var canvasDIvHeight = $('#AAImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; $('#canvasAADiv_' + windowviewid).css('height', canvasDIvHeight); }, onnormalized:function (panel) { @@ -674,7 +675,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou } $scope.SetAAwindowStoreData(windowviewid, 'minimised',false); $scope.SetAAwindowStoreData(windowviewid, 'maximised',false); - var canvasDIvHeight = $('#AAImagePanel_' + windowviewid+ " .jsPanel-content").height()-70; + var canvasDIvHeight = $('#AAImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; $('#canvasAADiv_' + windowviewid).css('height', canvasDIvHeight); }, resizable: { @@ -684,7 +685,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.SetAAwindowStoreData(windowviewid, 'width', ui.size.width); $scope.SetAAwindowStoreData(windowviewid, 'height', ui.size.height); $rootScope.UnsaveCurriculum = true; - var canvasDIvHeight = $('#AAImagePanel_' + windowviewid+ " .jsPanel-content").height()-70; + var canvasDIvHeight = $('#AAImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; $('#canvasAADiv_' + windowviewid).css('height', canvasDIvHeight); } @@ -761,16 +762,12 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.loadAAModule = function (windowviewid) { - if ($rootScope.isCallFromOtherModule) { - var canvasDIvHeight = parseInt($('#AAImagePanel_' + windowviewid).outerHeight()) - 100; - } - else - { - var canvasDIvHeight = parseInt($('#AAImagePanel_' + windowviewid).outerHeight()) - 90; + if (!$rootScope.isCallFromOtherModule) { $('#aaBodyView').css("height", $(window).outerHeight() - 65); $('#aaBodyView').css("width", $(window).outerWidth() - 15); } - + + var canvasDIvHeight = $('#AAImagePanel_' + windowviewid+ " .jsPanel-content").height()-50; $('#canvasAADiv_' + windowviewid).css('height', canvasDIvHeight); $('.canvasDivClass').css("height", canvasDIvHeight); @@ -988,7 +985,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou //call when module loaded $rootScope.resetMenuOption(); //remove pre event - $("#AAImagePanel_" + windowviewid).off("click"); + // $("#AAImagePanel_" + windowviewid).off("click"); $("#AAImagePanel_" + windowviewid).on('click', function (event) { var pnlName=event.currentTarget.id; diff --git a/400-SOURCECODE/AIAHTML5.Web/index.aspx b/400-SOURCECODE/AIAHTML5.Web/index.aspx index dc3bf71..2fbb7a3 100644 --- a/400-SOURCECODE/AIAHTML5.Web/index.aspx +++ b/400-SOURCECODE/AIAHTML5.Web/index.aspx @@ -1181,12 +1181,12 @@
-