From ee4766e6990ec491e7ef1a6658a4dda5ef2059a5 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 15 Jan 2019 10:03:38 +0800 Subject: [PATCH] * Adjust for copy story desc when batch create task. --- module/task/js/batchcreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/js/batchcreate.js b/module/task/js/batchcreate.js index 906da94e8a..4111017729 100755 --- a/module/task/js/batchcreate.js +++ b/module/task/js/batchcreate.js @@ -63,7 +63,7 @@ function copyStoryTitle(num) $('#name\\[' + num + '\\]').val(storyTitle); $('#estimate\\[' + num + '\\]').val($('#storyEstimate' + num).val()); - $('#desc\\[' + num + '\\]').val(($('#storyDesc' + num).val()).replace(/<[^>]+>/g,'')); + $('#desc\\[' + num + '\\]').val(($('#storyDesc' + num).val()).replace(/<[^>]+>/g,'').replace(/(\n)+\n/g, "\n").replace(/^\n/g, '')); var storyPri = $('#storyPri' + num).val(); if(storyPri == 0) $('#pri' + num ).val('3');