diff options
author | Giteabot <teabot@gitea.io> | 2023-03-27 22:13:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 21:13:11 -0500 |
commit | a254c26df907e4dea401320091a16342616f3a2a (patch) | |
tree | 397a5c391e5dda55d829e63464f2bf3a8918b034 | |
parent | 1fed0e1adc8dd2d27d2d7e34dda29c8e79e5e6e8 (diff) | |
download | gitea-a254c26df907e4dea401320091a16342616f3a2a.tar.gz gitea-a254c26df907e4dea401320091a16342616f3a2a.zip |
Fix issue due date edit toggle bug (#23723) (#23758)
Backport #23723 by @wxiaoguang
Use `toggleElem` instead of jQuery's `fadeToggle`, which can't be caught
by eslint jquery plugin.
Hopefully this could be the last bug for the jQuery show/hide
refactoring.
Need to backport.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
-rw-r--r-- | web_src/js/features/repo-issue.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index 52f777b6a0..eb00157279 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -78,7 +78,7 @@ function updateDeadline(deadlineString) { export function initRepoIssueDue() { $(document).on('click', '.issue-due-edit', () => { - $('#deadlineForm').fadeToggle(150); + toggleElem('#deadlineForm'); }); $(document).on('click', '.issue-due-remove', () => { updateDeadline(''); |