Commit b6cfc0bf5a201094b2d52f3be7db99f7a55bb976
1 parent
28a85418
print preview issue fixed
Showing
3 changed files
with
37 additions
and
22 deletions
400-SOURCECODE/AIAHTML5.API/Web.config
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | <add key="EnableSSL" value="false" /> |
40 | 40 | <add key="Site_Url" value ="http://34.207.39.107/"/> |
41 | 41 | <add key ="HostAddress" value="10.100.12.13" /> |
42 | - <add key="isUserAuthenticated" value="false"/> | |
42 | + <add key="isUserAuthenticated" value="true"/> | |
43 | 43 | <add key="AdminSupport" value="amrita.vishnoi@ebix.com,nikita.kulshreshtha@ebix.com"/> |
44 | 44 | </appSettings> |
45 | 45 | <system.web> | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -554,30 +554,34 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
554 | 554 | } |
555 | 555 | |
556 | 556 | $rootScope.openParent = function (slug) { |
557 | + if ($('#jsPanel-1').length > 0) { | |
557 | 558 | |
558 | - var openViews = $rootScope.openViews; | |
559 | - if (openViews.length > 0) { | |
560 | - $rootScope.openViews.splice(openViews.length - 1); | |
561 | 559 | } |
562 | - if (openViews.length > 0) { | |
563 | - var lastOpenMoudle = $rootScope.openViews[openViews.length - 1]; | |
564 | - } | |
565 | - $('#daImagePanel').remove(); | |
566 | - if ($('#jsPanel-1').length > 0) | |
567 | - $('#jsPanel-1').remove(); | |
560 | + else { | |
561 | + var openViews = $rootScope.openViews; | |
562 | + if (openViews.length > 0) { | |
563 | + $rootScope.openViews.splice(openViews.length - 1); | |
564 | + } | |
565 | + if (openViews.length > 0) { | |
566 | + var lastOpenMoudle = $rootScope.openViews[openViews.length - 1]; | |
567 | + } | |
568 | + // $('#daImagePanel').remove(); | |
569 | + if ($('#jsPanel-1').length > 0) | |
570 | + $('#jsPanel-1').remove(); | |
568 | 571 | |
569 | - if ($('#3DImagePanel').length > 0) | |
570 | - $('#3DImagePanel').remove(); | |
572 | + if ($('#3DImagePanel').length > 0) | |
573 | + $('#3DImagePanel').remove(); | |
571 | 574 | |
572 | - if ($('#ciImagePanel').length > 0) | |
573 | - $('#ciImagePanel').remove(); | |
575 | + if ($('#ciImagePanel').length > 0) | |
576 | + $('#ciImagePanel').remove(); | |
574 | 577 | |
575 | - if ($('#caVideoPanel').length > 0) | |
576 | - $('#caVideoPanel').remove(); | |
578 | + if ($('#caVideoPanel').length > 0) | |
579 | + $('#caVideoPanel').remove(); | |
577 | 580 | |
578 | - $location.url('/' + slug); | |
581 | + $location.url('/' + slug); | |
579 | 582 | |
580 | - $rootScope.$broadcast('jsPanelCloseEvent', true); | |
583 | + $rootScope.$broadcast('jsPanelCloseEvent', true); | |
584 | + } | |
581 | 585 | } |
582 | 586 | |
583 | 587 | //called on jsanel minimize |
... | ... | @@ -3444,19 +3448,21 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
3444 | 3448 | if ($('#daImagePanel').length > 0) { |
3445 | 3449 | console.log('close') |
3446 | 3450 | //$('#daImagePanel').css('display', 'none'); |
3447 | - $('#daImagePanel').remove(); | |
3451 | + // $('#daImagePanel').remove(); | |
3448 | 3452 | } |
3449 | 3453 | } |
3450 | 3454 | }); |
3451 | 3455 | }; |
3452 | 3456 | |
3453 | 3457 | function OpenJSPanel() { |
3458 | + $("#daImagePanel").css({ "pointer-events": "none", "opacity": ".5" }); | |
3459 | + $("#ciImagePanel").css({ "pointer-events": "none", "opacity": ".5" }); | |
3454 | 3460 | $.jsPanel({ |
3455 | 3461 | id: 'jsPanel-1', |
3456 | 3462 | selector: '#dvPrintPreview', |
3457 | 3463 | theme: 'success', |
3458 | 3464 | currentController: 'HomeController', |
3459 | - parentSlug: 'da-view-list', //After closing panel, control moves to here | |
3465 | + //parentSlug: 'da-view-list', //After closing panel, control moves to here | |
3460 | 3466 | ajax: { |
3461 | 3467 | url: 'app/views/home/printPreview.html' |
3462 | 3468 | }, |
... | ... | @@ -3559,11 +3565,16 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
3559 | 3565 | console.log('close') |
3560 | 3566 | } |
3561 | 3567 | |
3562 | - $(document).on('click', '.jsglyph-remove', function () { | |
3568 | + $(document).on('click', '#jsPanel-1 .jsglyph-remove', function () { | |
3569 | + $("#daImagePanel").css({ "pointer-events": "auto", "opacity": "1" }); | |
3570 | + $("#ciImagePanel").css({ "pointer-events": "auto", "opacity": "1" }); | |
3571 | + $("#annotationButton").parent().removeClass("disableMenuannotation"); | |
3572 | + $("#annotationToolBarOptions").removeClass("disableMenuoption"); | |
3563 | 3573 | $('#fileMenuAnchor').removeClass('disableMenuannotation'); |
3564 | 3574 | if ($('#jsPanel-1').length > 0) |
3565 | 3575 | $('#jsPanel-1').remove(); |
3566 | - console.log('close') | |
3576 | + console.log('close'); | |
3577 | + | |
3567 | 3578 | }); |
3568 | 3579 | |
3569 | 3580 | $rootScope.restrictBodySystemList = function () { | ... | ... |
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css