diff options
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index d4928a01a3..e55e2febe0 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1120,6 +1120,8 @@ async function initRepository() { e.preventDefault(); $(`.${$(this).data('do')}-fields`).show(); $(this).parent().hide(); + $('.instruct-toggle').hide(); + $('.instruct-content').hide(); }); $('.merge-button > .dropdown').dropdown({ onChange(_text, _value, $choice) { @@ -1133,6 +1135,7 @@ async function initRepository() { e.preventDefault(); $(this).closest('.form').hide(); $mergeButton.parent().show(); + $('.instruct-toggle').show(); }); initReactionSelector(); } @@ -1199,7 +1202,7 @@ async function initRepository() { function initPullRequestMergeInstruction() { $('.show-instruction').on('click', () => { - $('.instruct').toggle(); + $('.instruct-content').toggle(); }); } |