Skip to content

Commit

Permalink
Fix issue due date edit toggle bug (go-gitea#23723) (go-gitea#23758)
Browse files Browse the repository at this point in the history
Backport go-gitea#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>
  • Loading branch information
GiteaBot and wxiaoguang authored Mar 28, 2023
1 parent 1fed0e1 commit a254c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/repo-issue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('');
Expand Down

0 comments on commit a254c26

Please sign in to comment.