diff --git a/module/bug/js/view.js b/module/bug/js/view.js index 0fa36f3851..a5038e130c 100644 --- a/module/bug/js/view.js +++ b/module/bug/js/view.js @@ -2,3 +2,8 @@ $(document).ready(function() { limitIframeLevel(); }); + +$('#tostory').click(function() +{ + if(!confirm(confrimToStory)) return false; +}); diff --git a/module/bug/lang/en.php b/module/bug/lang/en.php index 7647b31a3b..d8d7c8fd71 100644 --- a/module/bug/lang/en.php +++ b/module/bug/lang/en.php @@ -208,6 +208,7 @@ $lang->bug->executionAccessDenied = "You access to the {$lang->executionCommon} $lang->bug->stepsNotEmpty = "The reproduction step cannot be empty."; $lang->bug->confirmUnlinkBuild = "Replacing the solution version will disassociate the bug from the old version. Are you sure you want to disassociate the bug from %s?"; $lang->bug->noSwitchBranch = 'The linked module of Bug%s is not in the current branch. It will be omitted.'; +$lang->bug->confirmToStory = 'The bug will be closed automatically after transferring to requirements, and the reason for closing is that the bug has been converted to requirements status.'; /* Template. */ $lang->bug->tplStep = "
[Steps]
[步骤]