Skip to content

Commit

Permalink
Fix issue due date edit toggle bug (go-gitea#23723)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wxiaoguang authored Mar 28, 2023
1 parent 6706ac2 commit 8df1b4b
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 8df1b4b

Please sign in to comment.