From b6a1b3eb79317ced31ee342bf5a6d84fa843d43c Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 15 Jun 2022 16:55:28 +0800 Subject: [PATCH] * Finish task #57095. --- module/execution/js/all.js | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/module/execution/js/all.js b/module/execution/js/all.js index d2048bb41b..8ad59d2411 100644 --- a/module/execution/js/all.js +++ b/module/execution/js/all.js @@ -28,23 +28,21 @@ $(function() } }); - if(useDatatable) + /* Expand and fold substages. */ + $('.table td.has-child > .plan-toggle').click(function() { - $('.table td.has-child > .plan-toggle').click(function() - { - var parentID = $(this).closest('tr').attr('data-id'); - $('.parent-' + parentID).toggle(); + var parentID = $(this).closest('tr').attr('data-id'); + $('.parent-' + parentID).toggle(); - if($('.parent-' + parentID).css('display') == 'none') - { - $(this).closest('td').removeClass('parent'); - } - else - { - $(this).closest('td').addClass('parent'); - } - }); - } + if($('.parent-' + parentID).css('display') == 'none') + { + $(this).closest('td').removeClass('parent'); + } + else + { + $(this).closest('td').addClass('parent'); + } + }); }); function byProduct(productID, projectID, status)