',
//ajax: {
// url: 'app/views/ci/ci-view-detail.html'
@@ -693,9 +693,18 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
var curCIListViewScroll = localStorage.getItem("CIListViewScroll");
if (typeof (curCIListViewScroll) !== "undefined" && curCIListViewScroll !== null && curCIListViewScroll !== '') {
-
+ if (typeof InstallTrigger !== 'undefined')
+ {
+
+ $('#ListViewDiv').animate({ scrollTop: localStorage.getItem("CIListViewScroll") });
+ }
+ else
+ {
+
$('#ListViewDiv').scrollTop(localStorage.getItem("CIListViewScroll"));
}
+
+ }
//else {
// $('#ListViewDiv').scrollTop(0);
//}
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
index 816f3a4..483b3f3 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -4242,7 +4242,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$rootScope.switchToTransparencycanvas();
}
}
+ else
+ {
+ $rootScope.UIWrapperZIndex = 12000;
+
+ $(".ui-wrapper").css("z-index", $rootScope.UIWrapperZIndex);
+
+ }
//hide the speechbubble
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
index d8dc4d0..1bfb6a2 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -357,6 +357,95 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
// var ajaxResult = [];
// var ajaxResult1 = [];
+
+ function onBrushSizeChange() {
+ $('.btnCursor').addClass('activebtncolor');
+ $(".btn-annotation").removeClass("activebtncolor");
+ $(".btn-annotation-erase").removeClass("activebtncolor");
+ $(".btn-annotation-erase").removeClass("activebtncolor");
+ $(".annotationpaintbrushsize").removeClass("activebtncolor");
+ var x = $('#canvasPaint').css("z-index");
+
+ var y = $('#canvas').css("z-index");
+ if (x > y) {
+ y = parseInt(x) + 1;
+ } else {
+ y = parseInt(y) + 1;
+ }
+ $('#canvas').css("z-index", y);
+ }
+
+ $("#slider-range-min-2").slider({
+ range: "min",
+ min: 1,
+ max: 60,
+ value: 1,
+ slide: function (event, ui) {
+
+ onBrushSizeChange();
+ console.log("sliding");
+ $("#btnBrushSize").val(ui.value);
+
+ },
+ stop: function (event, ui) {
+
+ $("#paintLine").attr("data-size", ui.value);
+
+ }
+
+ });
+
+
+ $("#btnBrushSize").keydown(function () {
+ onBrushSizeChange();
+ var brushSizevalue = this.value;
+ $("#slider-range-min-2").slider("value", parseInt(brushSizevalue));
+ });
+ $("#btnBrushSize").keyup(function () {
+ onBrushSizeChange();
+ var brushSizevalue = this.value;
+ $("#slider-range-min-2").slider("value", parseInt(brushSizevalue));
+ });
+ $("#btnBrushSizeIncrement").click(function () {
+ onBrushSizeChange();
+ var brushIncrementVar = $("#btnBrushSize").val();
+ if (brushIncrementVar >= 60) {
+ $("#slider-range-min-2").slider("value", 60);
+ }
+ else if (brushIncrementVar == "") {
+ var brushIncrementedValue = 1;
+ $("#btnBrushSize").val(brushIncrementedValue);
+ $("#slider-range-min-2").slider("value", parseInt(brushIncrementedValue));
+ }
+ else {
+ var brushIncrementedValue = parseInt(brushIncrementVar) + 1;
+ $("#btnBrushSize").val(brushIncrementedValue);
+ $("#slider-range-min-2").slider("value", parseInt(brushIncrementedValue));
+ }
+ });
+ $("#btnBrushSizeDecrease").click(function () {
+ onBrushSizeChange();
+ var brushDecreaseVar = $("#btnBrushSize").val();
+ if (brushDecreaseVar == "") {
+ var brushDecrementedValue = 1;
+ $("#btnBrushSize").val(brushDecrementedValue);
+ $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue));
+ }
+ else if (brushDecreaseVar <= 1) {
+ $("#slider-range-min-2").slider("value", 1);
+ }
+ else {
+ var brushDecrementedValue = parseInt(brushDecreaseVar) - 1;
+ $("#btnBrushSize").val(brushDecrementedValue);
+ $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue));
+ }
+ });
+
+ $("#btnBrushSize").val($("#slider-range-min-2").slider("value"));
+
+
+ // annotation slider ends
+
$rootScope.isLexiconTabClicked = true;
$rootScope.lexiconData = function () {
if ($rootScope.isLexiconTabClicked == true) {
@@ -515,6 +604,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
return moduleUrl === currentRoute ? 'active' : '';
}
$("#annotationToolBarOptions").removeClass("disableMenuoption");
+ $("#optionsListManagerTab").removeClass("disableMenuoption");
+
+
if (($location.url() == "/da-body-view")) {
$rootScope.disableMenuannotation = " ";
$rootScope.disableMenuoption = " ";
@@ -526,17 +618,28 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
$rootScope.disableMenuoption = " ";
$rootScope.disableSubMenu = "disableSubMenu";
$("#annotationToolBarOptions").removeClass("disableSubMenu");
+ $("#optionsListManagerTab").addClass("disableSubMenu");
$rootScope.disableFileMenu = " ";
}
+ else if ($location.url() == "/module-item-view") {
+ $rootScope.disableMenuannotation = " ";
+ $rootScope.disableMenuoption = " ";
+ $rootScope.disableSubMenu = "disableSubMenu";
+ $("#annotationToolBarOptions").removeClass("disableSubMenu");
+ $rootScope.disableFileMenu = " ";
+ }
+
else if ($location.url() == "/clinical-animations-detail") {
$rootScope.disableMenuannotation = "disableMenuannotation";
$rootScope.disableMenuoption = " ";
$rootScope.disableSubMenu = "disableSubMenu";
$("#annotationToolBarOptions").addClass("disableSubMenu");
+ $("#optionsListManagerTab").addClass("disableSubMenu");
$rootScope.disableFileMenu = "disableFileMenu";
}
else {
$("#annotationToolBarOptions").removeClass("disableSubMenu");
+ $("#optionsListManagerTab").removeClass("disableSubMenu");
$rootScope.disableMenuannotation = "disableMenuannotation";
$rootScope.disableMenuoption = "disableMenuoption";
$rootScope.disableSubMenu = "";
@@ -1403,9 +1506,20 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
$("#borderWidthCanvasElement").css({ "pointer-events": "none" });
$("#outlineColor").css({ "pointer-events": "none" });
}
+ if ((isfilloptionChecked == false) && (isOutlineOptionChecked == false)) {
+ $(".setEnableDisableForEditShapeStyle").css({ "opacity": "1" });
+ $("#borderWidthCanvasElement").css({ "pointer-events": "auto" });
+ $("#outlineColor").css({ "pointer-events": "auto" });
+ $(".enableDisableOpacity label").css({ "cursor": "pointer" });
+ $(".enableDisableOpacity").css({ "opacity": "1" });
+ $("#edit-slider-3").css({ "pointer-events": "auto" });
+ $("#edit-slider-4").css({ "pointer-events": "auto" });
+ $("#editstylebackgroundcolor").css({ "pointer-events": "auto" });
+ document.getElementById("editStyleForm").reset();
+ }
var previewBgColor = $("#shapeStyleDiv").css('background-color');
- var previewBorderColor = $('#previewBorder').css('border-color');
- var previewBorderWidth = $('#previewBorder').css('border-width');
+ var previewBorderColor = $('#previewBorder').css('border-top-color');
+ var previewBorderWidth = $('#previewBorder').css('border-top-width');
var previewOpacity = $('#previewBorder').css('opacity');
$('#editstylebackgroundcolor .minicolors >.minicolors-swatch > .minicolors-swatch-color').css("background-color", previewBgColor);
$("#imgOpacity").css("background-color", previewBgColor);
@@ -3427,10 +3541,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
};
$rootScope.ShowPrintPreviewWindow = function (event) { // Print Preview
-
+ $rootScope.CloseListManager();
$rootScope.CloseAnnotationTool();
$("#annotationButton").parent().addClass("disableMenuannotation");
$("#annotationToolBarOptions").addClass("disableMenuoption");
+ $("#optionsListManagerTab").addClass("disableMenuoption");
$('#dvPrintPreview').css('display', 'block');
html2canvas($("#canvasDiv"), {
onrendered: function (canvas) {
@@ -3512,6 +3627,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
top: 70,
left: 1,
},
+ controls: { buttons: 'closeonly'},
size: { width: $(window).outerWidth(), height: $(window).outerHeight() + 60 },
//size: { width: $(window).outerWidth() - 10, height: $(window).outerHeight() - 110 },
});
@@ -3611,6 +3727,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
$("#ciImagePanel").css({ "pointer-events": "auto", "opacity": "1" });
$("#annotationButton").parent().removeClass("disableMenuannotation");
$("#annotationToolBarOptions").removeClass("disableMenuoption");
+ $("#optionsListManagerTab").removeClass("disableMenuoption");
$('#fileMenuAnchor').removeClass('disableMenuannotation');
if ($('#jsPanel-1').length > 0)
$('#jsPanel-1').remove();
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
index 35e6cb7..6af8722 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -155,7 +155,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
canvas.style.top = '0px';
canvas.style.position = "absolute";
- $("#imageDiv").append(canvas);
+ $("#canvasDiv").append(canvas);
$scope.context = canvas.getContext("2d")
//6. Show all pins on AA opened item
@@ -197,8 +197,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
angular.element(document).ready(function (e) {
$("#ImagePanel").resize(function () {
- $("#imageDiv").scrollLeft($rootScope.CanvasDivLeftPosition);
- $("#imageDiv").scrollTop($rootScope.CanvasDivTopPosition);
+ $("#canvasDiv").scrollLeft($rootScope.CanvasDivLeftPosition);
+ $("#canvasDiv").scrollTop($rootScope.CanvasDivTopPosition);
});
})
@@ -610,7 +610,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$("#dot").css("visibility", "hidden");
var verticalScrollPosition = canvasDiv.scrollTop;
var horizontlScrollPosition = canvasDiv.scrollLeft;
- $scope.angle(x, y, evt.pageX + horizontlScrollPosition - $('#imageDiv').offset().left, evt.pageY + verticalScrollPosition - $('#imageDiv').offset().top, true);
+ $scope.angle(x, y, evt.pageX + horizontlScrollPosition - $('#canvasDiv').offset().left, evt.pageY + verticalScrollPosition - $('#canvasDiv').offset().top, true);
},
});
@@ -634,7 +634,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
if (MultipleLanguage == undefined) {
console.log("No text is found");
} else {
- $('#imageDiv').append(speechBubbleHTML);
+ $('#canvasDiv').append(speechBubbleHTML);
if ($scope.MultiLanguageAnnationArray.length > 0) {
for (var i = 0; i <= $scope.MultiLanguageAnnationArray.length - 1; i++) {
@@ -709,8 +709,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
drag: function (evt) {
- var verticalScrollPosition = document.getElementById('imageDiv').scrollTop;
- var horizontlScrollPosition = document.getElementById('imageDiv').scrollLeft;
+ var verticalScrollPosition = document.getElementById('canvasDiv').scrollTop;
+ var horizontlScrollPosition = document.getElementById('canvasDiv').scrollLeft;
var clickedSpeechBubbleId = $(this).attr("id");
var clickedPinId = clickedSpeechBubbleId.substring(12, clickedSpeechBubbleId.length);
@@ -720,7 +720,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
for (var i = 0; i <= $rootScope.speechBubbleDimaensions.length - 1; i++) {
if ($rootScope.speechBubbleDimaensions[i].id == clickedPinId) {
- $scope.angle(clickedPinId, $rootScope.speechBubbleDimaensions[i].currentX, $rootScope.speechBubbleDimaensions[i].currentY, evt.pageX + horizontlScrollPosition - $('#imageDiv').offset().left, evt.pageY + verticalScrollPosition - $('#imageDiv').offset().top, true);
+ $scope.angle(clickedPinId, $rootScope.speechBubbleDimaensions[i].currentX, $rootScope.speechBubbleDimaensions[i].currentY, evt.pageX + horizontlScrollPosition - $('#canvasDiv').offset().left, evt.pageY + verticalScrollPosition - $('#canvasDiv').offset().top, true);
}
}
@@ -879,6 +879,18 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
$scope.removeSpeechBubble();
}
+
+ $rootScope.$on('annotationToolEvent', function (event, data) {
+ $('#editstylebackgroundcolor .minicolors >.minicolors-swatch > .minicolors-swatch-color').css("background-color", "rgb(255,255,255)")
+ $('#editstylebackgroundcolor .minicolors >.minicolors-panel > .minicolors-grid >.minicolors-picker').css({ "top": "145px", "left": "4px" });
+ $('#outlineColor .minicolors >.minicolors-swatch > .minicolors-swatch-color').css("background-color", "rgb(0,0,0)")
+ $('#outlineColor .minicolors >.minicolors-panel > .minicolors-grid >.minicolors-picker').css({ "top": "145px", "left": "4px" });
+
+ $("#canvas").css("display", "block");
+ $("#canvasPaint").css("display", "block");
+ $rootScope.onDrawingCanvasClick();
+ $rootScope.FreeStylePaint();
+ });
}]);
function showSelectedSystemPins(event) {
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html
index 333edc6..eebf2b1 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html
+++ b/400-SOURCECODE/AIAHTML5.Web/app/views/aa/atlas-anatomy-detail.html
@@ -1,4 +1,22 @@
-
+
-
Annotation
+
Annotation
Options
diff --git a/400-SOURCECODE/AIAHTML5.Web/content/images/da/75/body-views/3/layers/0/1/L/2303.jpg b/400-SOURCECODE/AIAHTML5.Web/content/images/da/75/body-views/3/layers/0/1/L/2303.jpg
deleted file mode 100644
index 4ba5aaa..0000000
--- a/400-SOURCECODE/AIAHTML5.Web/content/images/da/75/body-views/3/layers/0/1/L/2303.jpg
+++ /dev/null
diff --git a/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/11/L/thumbnails/da_tni_3345_LY.jpg b/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/11/L/thumbnails/da_tni_3345_LY.jpg
deleted file mode 100644
index 25f27b5..0000000
--- a/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/11/L/thumbnails/da_tni_3345_LY.jpg
+++ /dev/null
diff --git a/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/6/A/thumbnails/da_tni_3340_AN.jpg b/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/6/A/thumbnails/da_tni_3340_AN.jpg
deleted file mode 100644
index 67d305a..0000000
--- a/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/6/A/thumbnails/da_tni_3340_AN.jpg
+++ /dev/null
diff --git a/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/7/B/thumbnails/da_tni_3341_BY.jpg b/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/7/B/thumbnails/da_tni_3341_BY.jpg
deleted file mode 100644
index dd4803a..0000000
--- a/400-SOURCECODE/AIAHTML5.Web/content/images/da/ethnicity/body-views/7/B/thumbnails/da_tni_3341_BY.jpg
+++ /dev/null
diff --git a/400-SOURCECODE/AIAHTML5.Web/index.html b/400-SOURCECODE/AIAHTML5.Web/index.html
index 1385af6..93f444a 100644
--- a/400-SOURCECODE/AIAHTML5.Web/index.html
+++ b/400-SOURCECODE/AIAHTML5.Web/index.html
@@ -1451,109 +1451,11 @@
-->