Calendar: Fix planner causes app tabs to show when printing

This commit is contained in:
nathan 2022-02-08 11:39:53 -07:00
parent 650d76bd5c
commit 0ba0d746da

View File

@ -2437,7 +2437,8 @@ export class et2_calendar_planner extends et2_calendar_view implements et2_IDeta
row = document.elementFromPoint(x, y); row = document.elementFromPoint(x, y);
if(this.div.has(row).length == 0) if(this.div.has(row).length == 0)
{ {
hidden_nodes.push(jQuery(row).hide()); hidden_nodes.push({element: row, display: row.style.display});
row.style.display = "none";
} }
else else
{ {
@ -2449,7 +2450,7 @@ export class et2_calendar_planner extends et2_calendar_view implements et2_IDeta
// Restore hidden nodes // Restore hidden nodes
for(var i = 0; i < hidden_nodes.length; i++) for(var i = 0; i < hidden_nodes.length; i++)
{ {
hidden_nodes[i].show(); hidden_nodes[i].element.style.display = hidden_nodes[i].display;
} }
row = jQuery(row).closest('.calendar_plannerRowWidget'); row = jQuery(row).closest('.calendar_plannerRowWidget');