Commit a5b3697fd0f62bdc066f81866e0be8d58063c66c

Authored by Amrita Vishnoi
2 parents 483e8f2e bc3d024b

Merged for Bu : 16276. Merged Against #462 .

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -559,30 +559,34 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
559 559 }
560 560  
561 561 $rootScope.openParent = function (slug) {
  562 + if ($('#jsPanel-1').length > 0) {
562 563  
563   - var openViews = $rootScope.openViews;
564   - if (openViews.length > 0) {
565   - $rootScope.openViews.splice(openViews.length - 1);
566 564 }
567   - if (openViews.length > 0) {
568   - var lastOpenMoudle = $rootScope.openViews[openViews.length - 1];
569   - }
570   - $('#daImagePanel').remove();
571   - if ($('#jsPanel-1').length > 0)
572   - $('#jsPanel-1').remove();
  565 + else {
  566 + var openViews = $rootScope.openViews;
  567 + if (openViews.length > 0) {
  568 + $rootScope.openViews.splice(openViews.length - 1);
  569 + }
  570 + if (openViews.length > 0) {
  571 + var lastOpenMoudle = $rootScope.openViews[openViews.length - 1];
  572 + }
  573 + // $('#daImagePanel').remove();
  574 + if ($('#jsPanel-1').length > 0)
  575 + $('#jsPanel-1').remove();
573 576  
574   - if ($('#3DImagePanel').length > 0)
575   - $('#3DImagePanel').remove();
  577 + if ($('#3DImagePanel').length > 0)
  578 + $('#3DImagePanel').remove();
576 579  
577   - if ($('#ciImagePanel').length > 0)
578   - $('#ciImagePanel').remove();
  580 + if ($('#ciImagePanel').length > 0)
  581 + $('#ciImagePanel').remove();
579 582  
580   - if ($('#caVideoPanel').length > 0)
581   - $('#caVideoPanel').remove();
  583 + if ($('#caVideoPanel').length > 0)
  584 + $('#caVideoPanel').remove();
582 585  
583   - $location.url('/' + slug);
  586 + $location.url('/' + slug);
584 587  
585   - $rootScope.$broadcast('jsPanelCloseEvent', true);
  588 + $rootScope.$broadcast('jsPanelCloseEvent', true);
  589 + }
586 590 }
587 591  
588 592 //called on jsanel minimize
... ... @@ -3449,19 +3453,21 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3449 3453 if ($('#daImagePanel').length > 0) {
3450 3454 console.log('close')
3451 3455 //$('#daImagePanel').css('display', 'none');
3452   - $('#daImagePanel').remove();
  3456 + // $('#daImagePanel').remove();
3453 3457 }
3454 3458 }
3455 3459 });
3456 3460 };
3457 3461  
3458 3462 function OpenJSPanel() {
  3463 + $("#daImagePanel").css({ "pointer-events": "none", "opacity": ".5" });
  3464 + $("#ciImagePanel").css({ "pointer-events": "none", "opacity": ".5" });
3459 3465 $.jsPanel({
3460 3466 id: 'jsPanel-1',
3461 3467 selector: '#dvPrintPreview',
3462 3468 theme: 'success',
3463 3469 currentController: 'HomeController',
3464   - parentSlug: 'da-view-list', //After closing panel, control moves to here
  3470 + //parentSlug: 'da-view-list', //After closing panel, control moves to here
3465 3471 ajax: {
3466 3472 url: 'app/views/home/printPreview.html'
3467 3473 },
... ... @@ -3564,11 +3570,16 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3564 3570 console.log('close')
3565 3571 }
3566 3572  
3567   - $(document).on('click', '.jsglyph-remove', function () {
  3573 + $(document).on('click', '#jsPanel-1 .jsglyph-remove', function () {
  3574 + $("#daImagePanel").css({ "pointer-events": "auto", "opacity": "1" });
  3575 + $("#ciImagePanel").css({ "pointer-events": "auto", "opacity": "1" });
  3576 + $("#annotationButton").parent().removeClass("disableMenuannotation");
  3577 + $("#annotationToolBarOptions").removeClass("disableMenuoption");
3568 3578 $('#fileMenuAnchor').removeClass('disableMenuannotation');
3569 3579 if ($('#jsPanel-1').length > 0)
3570 3580 $('#jsPanel-1').remove();
3571   - console.log('close')
  3581 + console.log('close');
  3582 +
3572 3583 });
3573 3584  
3574 3585 $rootScope.restrictBodySystemList = function () {
... ...
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css
... ... @@ -998,4 +998,7 @@ background-size:cover;
998 998 padding: 20px 10px;
999 999 text-align:center;
1000 1000 }
1001   -
1002 1001 \ No newline at end of file
  1002 + #jsPanel-1
  1003 + {
  1004 + z-index:11111;
  1005 + }
1003 1006 \ No newline at end of file
... ...