mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:15 +01:00
Etemplate: Fix extra rows stayed hidden after printing
This commit is contained in:
parent
52b1cab8e1
commit
90080cc0e6
@ -2114,8 +2114,8 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
}
|
}
|
||||||
// Use CSS to hide all but the requested rows
|
// Use CSS to hide all but the requested rows
|
||||||
// Prevents us from showing more than requested, if actual height was less than average
|
// Prevents us from showing more than requested, if actual height was less than average
|
||||||
nm_1.print_row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
nm_1.print.row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
||||||
egw.css(nm_1.print_row_selector, 'display: none');
|
egw.css(nm_1.print.row_selector, 'display: none');
|
||||||
// No scrollbar in print view
|
// No scrollbar in print view
|
||||||
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
||||||
// Show it all
|
// Show it all
|
||||||
@ -2138,8 +2138,8 @@ var et2_nextmatch = /** @class */ (function (_super) {
|
|||||||
jQuery('.egwGridView_scrollarea', this.div).css('height', 'auto');
|
jQuery('.egwGridView_scrollarea', this.div).css('height', 'auto');
|
||||||
// Use CSS to hide all but the requested rows
|
// Use CSS to hide all but the requested rows
|
||||||
// Prevents us from showing more than requested, if actual height was less than average
|
// Prevents us from showing more than requested, if actual height was less than average
|
||||||
this.print_row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
this.print.row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
||||||
egw.css(this.print_row_selector, 'display: none');
|
egw.css(this.print.row_selector, 'display: none');
|
||||||
// No scrollbar in print view
|
// No scrollbar in print view
|
||||||
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
||||||
// Give dialog a chance to close, or it will be in the print
|
// Give dialog a chance to close, or it will be in the print
|
||||||
|
@ -2827,8 +2827,8 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
}
|
}
|
||||||
// Use CSS to hide all but the requested rows
|
// Use CSS to hide all but the requested rows
|
||||||
// Prevents us from showing more than requested, if actual height was less than average
|
// Prevents us from showing more than requested, if actual height was less than average
|
||||||
nm.print_row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
nm.print.row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
||||||
egw.css(nm.print_row_selector, 'display: none');
|
egw.css(nm.print.row_selector, 'display: none');
|
||||||
|
|
||||||
// No scrollbar in print view
|
// No scrollbar in print view
|
||||||
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
||||||
@ -2857,8 +2857,8 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
|
|||||||
|
|
||||||
// Use CSS to hide all but the requested rows
|
// Use CSS to hide all but the requested rows
|
||||||
// Prevents us from showing more than requested, if actual height was less than average
|
// Prevents us from showing more than requested, if actual height was less than average
|
||||||
this.print_row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
this.print.row_selector = ".egwGridView_grid > tbody > tr:not(:nth-child(-n+" + rows + "))";
|
||||||
egw.css(this.print_row_selector, 'display: none');
|
egw.css(this.print.row_selector, 'display: none');
|
||||||
|
|
||||||
// No scrollbar in print view
|
// No scrollbar in print view
|
||||||
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
jQuery('.egwGridView_scrollarea', this.div).css('overflow-y', 'hidden');
|
||||||
|
Loading…
Reference in New Issue
Block a user