From ca88914a5d84dac0ecca666f3b44dae119ffcc33 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 10 Oct 2023 16:49:44 +0800 Subject: [PATCH] * Fix bug #39388. --- module/story/js/create.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/module/story/js/create.js b/module/story/js/create.js index c81c0bbfd6..77b8b00032 100644 --- a/module/story/js/create.js +++ b/module/story/js/create.js @@ -34,13 +34,24 @@ $(function() { if(storyType == 'requirement' && systemMode != 'PLM') return false; - var source = $(this).val(); + var $sourceBox = $(this).closest('tr.sourceBox'); + var source = $(this).val(); if($.inArray(source, feedbackSource) != -1) { + if($sourceBox.length > 0) + { + $(this).closest('td').attr('colspan', '1'); + $sourceBox.find('.sourceTd').attr('colspan', '1'); + } $('#feedbackBox').removeClass('hidden'); } else { + if($sourceBox.length > 0) + { + $(this).closest('td').attr('colspan', '2'); + $sourceBox.find('.sourceTd').attr('colspan', '2'); + } $('#feedbackBox').addClass('hidden'); } });