From 4fcf0b7dc3f81a3e7d6a2637ea7be7e83938fd71 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 15 Jun 2022 17:26:39 +0800 Subject: [PATCH] * Finish task #57095. --- module/execution/js/all.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/module/execution/js/all.js b/module/execution/js/all.js index 8ad59d2411..25ba2f991c 100644 --- a/module/execution/js/all.js +++ b/module/execution/js/all.js @@ -43,6 +43,21 @@ $(function() $(this).closest('td').addClass('parent'); } }); + + $(document).on('click', "#toggleFold", function() + { + var fold = $(this).hasClass('collapsed'); + if(fold) + { + $('.has-child.c-name.flex').removeClass('parent'); + $('.table td.has-child > .plan-toggle').addClass('collapsed'); + } + else + { + $('.has-child.c-name.flex').addClass('parent'); + $('.table td.has-child > .plan-toggle').removeClass('collapsed'); + } + }); }); function byProduct(productID, projectID, status)