aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-28 09:07:21 +0800
committerGitHub <noreply@github.com>2023-03-28 09:07:21 +0800
commit8df1b4bd699897264c60da7ce982b09cee57f345 (patch)
treeb5c2d4940fede4ef88154764b75d1ecd27f437f2 /web_src/js
parent6706ac2a0f5f2fe4f8e2555be7e2a8b4d5946398 (diff)
downloadgitea-8df1b4bd699897264c60da7ce982b09cee57f345.tar.gz
gitea-8df1b4bd699897264c60da7ce982b09cee57f345.zip
Fix issue due date edit toggle bug (#23723)
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.
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/features/repo-issue.js2
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 767f071151..f1425d4459 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('');