Commit 50438758e21ca3428ffdbaa1d738ae92833605ac

Authored by unknown
1 parent faaecac0

Resolved Double Clicked issue in Ipad

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -597,12 +597,69 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
597 597  
598 598 //to get slider working on ipad
599 599 var $ua = navigator.userAgent;
600   -
601 600 if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {
602   -
603   - $("#layerChangeSlider").css("pointer-events", "auto");
604   -
605   - }
  601 + $("#layerChangeSlider").css("pointer-events", "auto");
  602 + // on identity mode click
  603 + $("#btnZoom").removeAttr("onclick");
  604 + $("#btnZoom").on("touchstart", function () {
  605 + if ($(".btn-annotation").hasClass("activebtncolor")) //Bug #14928
  606 + $(".btn-annotation").removeClass("activebtncolor");
  607 + //Dissectible Anatomy > Extract and Annotations displays apart on the page after click on Zoom-in.
  608 + $(".com").remove();
  609 + $("#bord").remove();
  610 + console.log('OnZoom is called outside ');
  611 + var scope = angular.element(document.getElementById("daView")).scope();
  612 + scope.$apply(function () {
  613 + scope.enableZoom();
  614 + });
  615 + });
  616 + // on transparency mode click
  617 + $("#btnTranparency").removeAttr("onclick");
  618 + $("#btnTranparency").on("touchstart", function () {
  619 + console.log('OnEnableExtract is called outside ');
  620 + var scope = angular.element(document.getElementById("daView")).scope();
  621 + scope.$apply(function () {
  622 + scope.createTransparencyBox('true');
  623 + });
  624 + });
  625 + // on normal mode click
  626 + $("#btnNormalMode").removeAttr("onclick");
  627 + $("#btnNormalMode").on("touchstart", function () {
  628 + console.log('OnEnableNormalMode is called outside ');
  629 + $("#btnTranparency").removeClass("disabled");
  630 + var scope = angular.element(document.getElementById("daView")).scope();
  631 + scope.$apply(function () {
  632 + scope.enableNormalMode();
  633 + });
  634 + });
  635 + // on extract mode click
  636 + $("#btnExtract").removeAttr("onclick");
  637 + $("#btnExtract").on("touchstart", function () {
  638 + console.log('OnEnableExtract is called outside ');
  639 + var scope = angular.element(document.getElementById("daView")).scope();
  640 + scope.$apply(function () {
  641 + scope.enableExtract('true');
  642 + });
  643 + });
  644 + // on highlight mode click
  645 + $("#btnHighLight").removeAttr("onclick");
  646 + $("#btnHighLight").on("touchstart", function () {
  647 + console.log('OnEnableHighlight is called outside ');
  648 + var scope = angular.element(document.getElementById("daView")).scope();
  649 + scope.$apply(function () {
  650 + scope.enableHighlight();
  651 + });
  652 + });
  653 + // on show/hide mode click
  654 + $("#btnStrutureBox").removeAttr("onclick");
  655 + $("#btnStrutureBox").on("touchstart", function () {
  656 + console.log('OnBodySystem chnaged is called outside ');
  657 + var scope = angular.element(document.getElementById("daView")).scope();
  658 + scope.$apply(function () {
  659 + scope.enableShowHideStructureBox();
  660 + });
  661 + });
  662 + }
606 663  
607 664 $(document).on("click", "#daImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () {
608 665 $rootScope.selectedBodySystemName = 'All';
... ...