Skip to content
Snippets Groups Projects
Commit a234cfb5 authored by Damien's avatar Damien
Browse files

[FEAT] [PARA V2] main doc fullscreen

parent 9fd75136
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@
</div>
</div>
<div *ngIf="showLeftPanel" class="contentLeft" [ngStyle]="{'width': leftContentWidth}" id="contentLeft">
<div *ngIf="showLeftPanel" class="hideresListContent" (click)="displayPanel('RESLEFT')">
<div *ngIf="showLeftPanel && showRightPanel" class="hideresListContent" (click)="displayPanel('RESLEFT')">
<i class="fa fa-chevron-left" aria-hidden="true" *ngIf="showResLeftPanel"></i>
<i class="fa fa-chevron-right" aria-hidden="true" *ngIf="!showResLeftPanel"></i>
</div>
......@@ -92,13 +92,13 @@
<div *ngIf="headerTab == 5" class="contentShow" style="width:98%;">
<iframe [src]="linksViewerLink | safeUrl"></iframe>
</div>
<div class="hideRightContent">
<i class="fa fa-chevron-right" aria-hidden="true" *ngIf="showLeftPanel"></i>
<i class="fa fa-chevron-left" aria-hidden="true" *ngIf="!showLeftPanel"></i>
<div class="hideRightContent" (click)="displayPanel('MIDDLE')">
<i class="fa fa-chevron-right" aria-hidden="true" *ngIf="showRightPanel"></i>
<i class="fa fa-chevron-left" aria-hidden="true" *ngIf="!showRightPanel"></i>
</div>
</div>
<div class="contentRight" id="contentRight" [ngStyle]="{'width': rightContentWidth}">
<div class="hideLeftContent" (click)="displayPanel('LEFT')">
<div *ngIf="showRightPanel" class="contentRight" id="contentRight" [ngStyle]="{'width': rightContentWidth}">
<div class="hideLeftContent" (click)="displayPanel('LEFT')" id="hideLeftContent">
<i class="fa fa-chevron-left" aria-hidden="true" *ngIf="showLeftPanel"></i>
<i class="fa fa-chevron-right" aria-hidden="true" *ngIf="!showLeftPanel"></i>
</div>
......
......@@ -51,11 +51,12 @@ var SignatureBookComponent = (function () {
this.showTopLeftPanel = false;
this.showResLeftPanel = true;
this.showLeftPanel = true;
this.showRightPanel = true;
this.showAttachmentEditionPanel = false;
this.loading = false;
this.loadingSign = false;
this.leftContentWidth = "43%";
this.rightContentWidth = "43%";
this.leftContentWidth = "44%";
this.rightContentWidth = "44%";
this.notesViewerLink = "";
this.visaViewerLink = "";
this.histViewerLink = "";
......@@ -102,6 +103,7 @@ var SignatureBookComponent = (function () {
_this.leftViewerLink = "";
_this.rightViewerLink = "";
_this.showLeftPanel = true;
_this.showRightPanel = true;
_this.showResLeftPanel = true;
_this.showTopLeftPanel = false;
_this.showTopRightPanel = false;
......@@ -110,8 +112,8 @@ var SignatureBookComponent = (function () {
_this.visaViewerLink = "index.php?display=true&page=show_visa_tab&module=visa&resId=" + _this.resId + "&collId=letterbox_coll&visaStep=true";
_this.histViewerLink = "index.php?display=true&dir=indexing_searching&page=document_workflow_history&id=" + _this.resId + "&coll_id=letterbox_coll&load&size=full";
_this.linksViewerLink = "index.php?display=true&page=show_links_tab&id=" + _this.resId;
_this.leftContentWidth = "43%";
_this.rightContentWidth = "43%";
_this.leftContentWidth = "44%";
_this.rightContentWidth = "44%";
if (_this.signatureBook.documents[0]) {
_this.leftViewerLink = _this.signatureBook.documents[0].viewerLink;
}
......@@ -191,21 +193,36 @@ var SignatureBookComponent = (function () {
this.showResLeftPanel = false;
if (!this.showLeftPanel) {
this.rightContentWidth = "96%";
$j("#hideLeftContent").css('background', 'none');
}
else {
this.rightContentWidth = "47%";
this.leftContentWidth = "47%";
this.rightContentWidth = "48%";
this.leftContentWidth = "48%";
$j("#hideLeftContent").css('background', '#CEE9F1');
}
}
else if (panel == "RESLEFT") {
this.showResLeftPanel = !this.showResLeftPanel;
if (!this.showResLeftPanel) {
this.rightContentWidth = "47%";
this.leftContentWidth = "47%";
this.rightContentWidth = "48%";
this.leftContentWidth = "48%";
}
else {
this.rightContentWidth = "43%";
this.leftContentWidth = "43%";
this.rightContentWidth = "44%";
this.leftContentWidth = "44%";
}
}
else if (panel == "MIDDLE") {
this.showRightPanel = !this.showRightPanel;
this.showResLeftPanel = false;
if (!this.showRightPanel) {
this.leftContentWidth = "96%";
$j("#contentLeft").css('border-right', 'none');
}
else {
this.rightContentWidth = "48%";
this.leftContentWidth = "48%";
$j("#contentLeft").css('border-right', 'solid 1px');
}
}
};
......
......@@ -46,12 +46,13 @@ export class SignatureBookComponent implements OnInit {
showTopLeftPanel : boolean = false;
showResLeftPanel : boolean = true;
showLeftPanel : boolean = true;
showRightPanel : boolean = true;
showAttachmentEditionPanel : boolean = false;
loading : boolean = false;
loadingSign : boolean = false;
leftContentWidth : string = "43%";
rightContentWidth : string = "43%";
leftContentWidth : string = "44%";
rightContentWidth : string = "44%";
notesViewerLink : string = "";
visaViewerLink : string = "";
......@@ -105,6 +106,7 @@ export class SignatureBookComponent implements OnInit {
this.leftViewerLink = "";
this.rightViewerLink = "";
this.showLeftPanel = true;
this.showRightPanel = true;
this.showResLeftPanel = true;
this.showTopLeftPanel = false;
this.showTopRightPanel = false;
......@@ -114,8 +116,8 @@ export class SignatureBookComponent implements OnInit {
this.histViewerLink = "index.php?display=true&dir=indexing_searching&page=document_workflow_history&id=" + this.resId + "&coll_id=letterbox_coll&load&size=full";
this.linksViewerLink = "index.php?display=true&page=show_links_tab&id=" + this.resId;
this.leftContentWidth = "43%";
this.rightContentWidth = "43%";
this.leftContentWidth = "44%";
this.rightContentWidth = "44%";
if (this.signatureBook.documents[0]) {
this.leftViewerLink = this.signatureBook.documents[0].viewerLink;
}
......@@ -198,18 +200,31 @@ export class SignatureBookComponent implements OnInit {
this.showResLeftPanel = false;
if (!this.showLeftPanel) {
this.rightContentWidth = "96%";
$j("#hideLeftContent").css('background', 'none');
} else {
this.rightContentWidth = "47%";
this.leftContentWidth = "47%";
this.rightContentWidth = "48%";
this.leftContentWidth = "48%";
$j("#hideLeftContent").css('background', '#CEE9F1');
}
} else if (panel == "RESLEFT") {
this.showResLeftPanel = !this.showResLeftPanel;
if (!this.showResLeftPanel) {
this.rightContentWidth = "47%";
this.leftContentWidth = "47%";
this.rightContentWidth = "48%";
this.leftContentWidth = "48%";
} else {
this.rightContentWidth = "43%";
this.leftContentWidth = "43%";
this.rightContentWidth = "44%";
this.leftContentWidth = "44%";
}
} else if (panel == "MIDDLE") {
this.showRightPanel = !this.showRightPanel;
this.showResLeftPanel = false;
if (!this.showRightPanel) {
this.leftContentWidth = "96%";
$j("#contentLeft").css('border-right', 'none');
} else {
this.rightContentWidth = "48%";
this.leftContentWidth = "48%";
$j("#contentLeft").css('border-right', 'solid 1px');
}
}
}
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment