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 11b9eb0350
commit bfbf3183e1

View File

@ -2424,7 +2424,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
{ {
@ -2436,7 +2437,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');