From 3a1c233bff72f37b11ede07af3e0d724f94afedf Mon Sep 17 00:00:00 2001 From: Matthias Mair <66015116+matmair@users.noreply.github.com> Date: Thu, 6 May 2021 16:11:08 +0200 Subject: [PATCH] Bug/calender (#1558) * fixes calendar not rendering when toggling view * same for po * and builds --- InvenTree/build/templates/build/index.html | 2 ++ InvenTree/order/templates/order/purchase_orders.html | 2 ++ InvenTree/order/templates/order/sales_orders.html | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/InvenTree/build/templates/build/index.html b/InvenTree/build/templates/build/index.html index fbed17bfa3..0ff4b78ab8 100644 --- a/InvenTree/build/templates/build/index.html +++ b/InvenTree/build/templates/build/index.html @@ -158,6 +158,8 @@ $('#view-calendar').click(function() { $("#build-order-calendar").show(); $("#view-list").show(); + + calendar.render(); }); $("#view-list").click(function() { diff --git a/InvenTree/order/templates/order/purchase_orders.html b/InvenTree/order/templates/order/purchase_orders.html index 9d15449abf..2d3180a026 100644 --- a/InvenTree/order/templates/order/purchase_orders.html +++ b/InvenTree/order/templates/order/purchase_orders.html @@ -146,6 +146,8 @@ $('#view-calendar').click(function() { $("#purchase-order-calendar").show(); $("#view-list").show(); + + calendar.render(); }); $("#view-list").click(function() { diff --git a/InvenTree/order/templates/order/sales_orders.html b/InvenTree/order/templates/order/sales_orders.html index 8ae538ffce..c6e84f8209 100644 --- a/InvenTree/order/templates/order/sales_orders.html +++ b/InvenTree/order/templates/order/sales_orders.html @@ -141,9 +141,11 @@ $('#view-calendar').click(function() { $(".columns-right").hide(); $(".search").hide(); $('#filter-list-salesorder').hide(); - + $("#sales-order-calendar").show(); $("#view-list").show(); + + calendar.render(); }); $("#view-list").click(function() {