From 21356434c75767ee248c28b0e0cc4efc1f4ba626 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 8 Feb 2022 11:54:51 -0700 Subject: [PATCH] Calendar: JS changes from previous commit --- calendar/js/et2_widget_planner.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/calendar/js/et2_widget_planner.js b/calendar/js/et2_widget_planner.js index 0aec1e9af4..b9ee0013c8 100644 --- a/calendar/js/et2_widget_planner.js +++ b/calendar/js/et2_widget_planner.js @@ -1898,7 +1898,8 @@ var et2_calendar_planner = /** @class */ (function (_super) { do { row = document.elementFromPoint(x, y); 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 { break; @@ -1908,7 +1909,7 @@ var et2_calendar_planner = /** @class */ (function (_super) { return false; // Restore hidden nodes 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'); var row_widget = null;