diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js index b06110c..b66936a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js @@ -145,22 +145,22 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ } - $window.onbeforeunload = function (e) { - var confirmation = {}; - if($location.url()== "/curriculum-builder-detail") { - var event = $rootScope.$broadcast('onBeforeUnload', confirmation); - if (event.defaultPrevented) { - return confirmation.message; - } - } + // $window.onbeforeunload = function (e) { + // var confirmation = {}; + // if($location.url()== "/curriculum-builder-detail") { + // var event = $rootScope.$broadcast('onBeforeUnload', confirmation); + // if (event.defaultPrevented) { + // return confirmation.message; + // } + // } - }; + // }; }); - $scope.$on('onBeforeUnload', function (e, confirmation) { - confirmation.message = "All data willl be lost."; - e.preventDefault(); - }); + // $scope.$on('onBeforeUnload', function (e, confirmation) { + // confirmation.message = "All data willl be lost."; + // e.preventDefault(); + // }); $rootScope.firstSelectedNodeId = null; //load json data @@ -324,14 +324,12 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ objFileRead.readAsText(file); }, 300); } else { - alert("Please select only Saved Curriculum Builder Json file!"); + alert("Please select exported\saved Curriculum Builder Json file!"); } } - function receivedFile(e) { - //let lines = e.target.result; - $scope.CBEnableUI(); + function receivedFile(e) { var jsonData = JSON.parse(e.target.result); localStorage.setItem("cbJsonDataObject", JSON.stringify(jsonData)); $rootScope.cbJsonData = ""; @@ -1259,7 +1257,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ objFileRead.readAsText(file); }, 300); } else { - alert("Please select only Export Curriculum Builder Json file!"); + alert("Please select exported\saved Curriculum Builder Json file!"); } } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 98ea234..6d30b24 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -5090,7 +5090,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l var verticalScrollPosition = canvasDiv.scrollTop; var horizontlScrollPosition = canvasDiv.scrollLeft; - $scope.angle(x, y, evt.pageX + horizontlScrollPosition - $('#canvasDivDA_' + windid).offset().left, evt.pageY + verticalScrollPosition - $('#canvasDivDA_' + windid).offset().top, true,windid); + $scope.angle(x-2, y, evt.pageX + horizontlScrollPosition - $('#canvasDivDA_' + windid).offset().left, evt.pageY + verticalScrollPosition - $('#canvasDivDA_' + windid).offset().top, true,windid); }, //Update Annotation Cordianate in case of show single Annotation stop: function (evt) { @@ -5270,7 +5270,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l var canvasDiv = document.getElementById('canvasDivDA_' + windid); var verticalScrollPosition = canvasDiv.scrollTop; var horizontlScrollPosition = canvasDiv.scrollLeft; - $scope.angle(x, y, evt.pageX + horizontlScrollPosition - $('#canvasDivDA_' + windid).offset().left, evt.pageY + verticalScrollPosition - $('#canvasDivDA_' + windid).offset().top, false,windid); + $scope.angle(x-2, y, evt.pageX + horizontlScrollPosition - $('#canvasDivDA_' + windid).offset().left, evt.pageY + verticalScrollPosition - $('#canvasDivDA_' + windid).offset().top, false,windid); }, //Update Annotation Cordianate in case of show single Annotation @@ -5436,10 +5436,10 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l var isHighlightBodyWithCBTermData=$scope.GetwindowStoreData(windowviewid,'isHighlightBodyWithCBTermData'); if (isHighlightBodyWithCBTermData == true) { - var sppechBubbleHTML = "
"; + var sppechBubbleHTML = "
"; } else { - var sppechBubbleHTML = "
"; + var sppechBubbleHTML = "
"; } //Issue #7286 :Undefined annotation should not appear @@ -5486,7 +5486,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $scope.createSpeechBubbleBasedOnAnnotationLengthwithoutCtrl = function (x, y, windowviewid, termNumber) { - var sppechBubbleDotHTML = '' + var sppechBubbleDotHTML = '
' + '' @@ -5523,20 +5523,20 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l var Globe = []; Globe.push({ currentX: x, currentY: y }); document.getElementById('dot_'+windowviewid).style.display = 'block'; - document.getElementById('dot_'+windowviewid).style.left = ((Globe[0].currentX) - 10) + 'px'; + document.getElementById('dot_'+windowviewid).style.left = ((Globe[0].currentX) - 6) + 'px'; document.getElementById('dot_'+windowviewid).style.top = ((Globe[0].currentY) + 10) + 'px'; document.getElementById('bord_'+windowviewid).style.display = 'block'; document.getElementById('bord_'+windowviewid).style.left = ((Globe[0].currentX) - 2) + 'px'; - document.getElementById('bord_'+windowviewid).style.top = ((Globe[0].currentY) + 1) + 'px'; + document.getElementById('bord_'+windowviewid).style.top = ((Globe[0].currentY) + 0) + 'px'; document.getElementById('sppeachBubble_' + windowviewid + '-' + termNumber).style.display = 'block'; - document.getElementById('sppeachBubble_' + windowviewid + '-' + termNumber).style.left = (Globe[0].currentX) + 'px'; + document.getElementById('sppeachBubble_' + windowviewid + '-' + termNumber).style.left = ((Globe[0].currentX) - 2) + 'px'; document.getElementById('sppeachBubble_' + windowviewid + '-' + termNumber).style.top = (Globe[0].currentY) + 'px'; } $scope.createSpeechBubbleBasedOnTransparencyWithCtrl = function (pointClicked_annotation, Exists_annotation, x, y, sub_id_annotation, windowviewid, TPspeechBubbleCounter) { - var sppechBubbleHTML_annotation = "
"; + var sppechBubbleHTML_annotation = "
"; if ($scope.longest_annotationT1.length > $scope.longest_annotationT2.length) { if (Exists_annotation == 0) { $('#canvasDivDA_' + windowviewid).append(sppechBubbleHTML_annotation); @@ -5591,7 +5591,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l $('#sppeachBubble_annotation_' + windowviewid).remove(); $('#sppeachBubble_annotation_' + windowviewid + '-' + termNumber).remove(); $('#dot_annotation_'+windowviewid).remove(); - var sppechBubbleDotHTML_annotation = '' + var sppechBubbleDotHTML_annotation = '
' + '' @@ -5639,13 +5639,13 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l var Globe = []; Globe.push({ currentX: x, currentY: y }); document.getElementById('dot_annotation_'+windowviewid).style.display = 'block'; - document.getElementById('dot_annotation_'+windowviewid).style.left = ((Globe[0].currentX) - 10) + 'px'; + document.getElementById('dot_annotation_'+windowviewid).style.left = ((Globe[0].currentX) - 6) + 'px'; document.getElementById('dot_annotation_'+windowviewid).style.top = ((Globe[0].currentY) + 10) + 'px'; document.getElementById('bord_annotation_'+windowviewid).style.display = 'block'; document.getElementById('bord_annotation_'+windowviewid).style.left = ((Globe[0].currentX) - 2) + 'px'; - document.getElementById('bord_annotation_'+windowviewid).style.top = ((Globe[0].currentY) + 1) + 'px'; + document.getElementById('bord_annotation_'+windowviewid).style.top = ((Globe[0].currentY)) + 'px'; document.getElementById('sppeachBubble_annotation_' + windowviewid + '-' + termNumber).style.display = 'block'; - document.getElementById('sppeachBubble_annotation_' + windowviewid + '-' + termNumber).style.left = (Globe[0].currentX) + 'px'; + document.getElementById('sppeachBubble_annotation_' + windowviewid + '-' + termNumber).style.left = (Globe[0].currentX-2) + 'px'; document.getElementById('sppeachBubble_annotation_' + windowviewid + '-' + termNumber).style.top = (Globe[0].currentY) + 'px'; } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 0fbafcc..f36c56c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -1,7 +1,7 @@ 'use strict'; -AIA.controller("HomeController", ["$rootScope", "$scope", "Modules", "$log", "$location", "$compile", "$timeout", "DataService", "AuthenticationService", "ConfigurationService", "LoginConstants", "UserModules", "LoginMessageConstants", "AdminService", "$http", "AdminConstants", "UserTypeConstants", "AIAConstants","ModuleService", -function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, DataService, AuthenticationService, ConfigurationService, LoginConstants, UserModules, LoginMessageConstants, AdminService, $http, AdminConstants, UserTypeConstants, AIAConstants, ModuleService) { +AIA.controller("HomeController", ["$rootScope", "$scope", "Modules", "$log", "$location", "$compile", "$timeout", "DataService", "AuthenticationService", "ConfigurationService", "LoginConstants", "UserModules", "LoginMessageConstants", "AdminService", "$http", "AdminConstants", "UserTypeConstants", "AIAConstants","ModuleService","$window", +function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, DataService, AuthenticationService, ConfigurationService, LoginConstants, UserModules, LoginMessageConstants, AdminService, $http, AdminConstants, UserTypeConstants, AIAConstants, ModuleService,$window) { //$scope.pageToOpen = { // name: 'MainMenu' @@ -1850,6 +1850,21 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#000000" }); $("#drawTextBGColorpicker .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": "#ffffff" }); + $window.onbeforeunload = function (e) { + var confirmation = {}; + if($location.url()!= "/") { + var event = $rootScope.$broadcast('onBeforeUnload', confirmation); + if (event.defaultPrevented) { + return confirmation.message; + } + } + + }; + }); + + $scope.$on('onBeforeUnload', function (e, confirmation) { + confirmation.message = "All data willl be lost."; + e.preventDefault(); }); $rootScope.$on("$locationChangeSuccess", function () { @@ -3150,7 +3165,7 @@ function ($rootScope, $scope, Modules, $log, $location, $compile, $timeout, Data break; case 'mouseup': - $scope.savePaintAnnotation(this.el.id,this.actions,); + $scope.savePaintAnnotation(this.el.id,this.actions); case 'mouseout': case 'mouseleave': diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index bf113f4..c4b7b9d 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -35,8 +35,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou $scope.setActiveTab = function (tabToSet) { - $scope.activeTab = tabToSet; + $scope.activeTab = tabToSet==undefined?1:tabToSet; localStorage.setItem("activeTab", $scope.activeTab); + if ($scope.activeTab == 1) { $('#grid-view').css("display", "block"); $('#list-view').css("display", "none"); @@ -246,7 +247,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou if ($rootScope.refreshcheck == null) { $location.path('/'); } - $scope.activeTab = 1; + var curtab = $rootScope.getLocalStorageValue("activeTab"); + $scope.setActiveTab(curtab) + console.log('loadForModuleById is called') $scope.SetAAwindowStoreData($rootScope.MULTI_VIEW_ID,'moduleName',"ATLAS_ANATOMY"); @@ -306,15 +309,14 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou }, 100); - $('#list-view').css('display', 'none'); + // $('#list-view').css('display', 'none'); } $scope.openModuleItemView = function ($event) { var windowviewid = $rootScope.MULTI_VIEW_ID; $rootScope.MenuModuleName = "AA"; - localStorage.setItem("activeTab", $scope.activeTab); - + //0. Get selected Image Id if ($scope.isListViewButtonClicked == true) { if ($scope.isOpenBtnClicked == true) { @@ -2084,7 +2086,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou var isShowBodyWithCBPinData=$scope.GetAAwindowStoreData(windowviewid,'isShowBodyWithCBPinData'); - var speechBubbleHTML = '' + var speechBubbleHTML = '
' + '
' + '' + '
' @@ -2206,6 +2208,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou } $('.common-drag').draggable( { + containment: '#canvasAADiv_' + windowviewid, drag: function (evt) { //stop: function (evt) { var clickedSpeechBubbleId = $(this).attr("id"); diff --git a/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css b/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css index 442ef62..418132b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css +++ b/400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css @@ -1311,6 +1311,28 @@ footer .browserIcons -webkit-text-security: disc; } + +.singleLineAnnotation { + position:absolute; + width:36px; + display:none; + border-top:2px solid #000; + transform:rotate(40deg); + -moz-transform:rotate(40deg); + -o-transform:rotate(40deg); + -ms-transform:rotate(40deg); + -webkit-transform:rotate(40deg); +} +.multiLineAnnotation { + position:absolute; + width:35px; + border-top:2px solid #000; + transform:rotate(40deg); + -moz-transform:rotate(40deg); + -o-transform:rotate(40deg); + -ms-transform:rotate(40deg); + -webkit-transform:rotate(40deg); +} .cbMoveUpDown { @@ -1379,7 +1401,7 @@ footer .browserIcons width:100%; height:100%; - filter: Alpha(opacity=50); / IE8 and earlier / + filter: Alpha(opacity=50); /* IE8 and earlier */ } @@ -1406,7 +1428,7 @@ footer .browserIcons width:100%; height:100%; - filter: Alpha(opacity=50); / IE8 and earlier / + filter: Alpha(opacity=50); /* IE8 and earlier */ }