aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwxiaoguang2023-03-02 03:18:35 +0800
committerGitHub2023-03-01 14:18:35 -0500
commit403f3e9208b2d2564d67bdf87be758c487083e28 (patch)
tree9851a27ec4b4315cc6c9e17f3fdf025647e766bd
parentdf48af22296ccce8e9bd18e5d35c9a3cdf5acb0f (diff)
Use the correct selector to hide the checkmark of selected labels on clear (#23224)
Regression of #10107 (https://github.com/go-gitea/gitea/pull/10107/files#diff-a15e36f2f9c13339f7fdd38bc2887db2ff2945cb8434464318ab9105fcc846bdR460) Fix #22222 Before: the "clear" action couldn't remove these check marks. ![image](https://user-images.githubusercontent.com/2114189/222212998-c9f33459-b71d-4e80-8588-2935f3b7050c.png) After: the "clear" action can remove these check marks. ![image](https://user-images.githubusercontent.com/2114189/222213048-2be98ed0-cac0-4e27-b72c-1dd0ac2637d5.png)
-rw-r--r--web_src/js/features/repo-legacy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js
index 118475e32..8c2a0207c 100644
--- a/web_src/js/features/repo-legacy.js
+++ b/web_src/js/features/repo-legacy.js
@@ -232,7 +232,7 @@ export function initRepoCommentForm() {
$(this).parent().find('.item').each(function () {
$(this).removeClass('checked');
- $(this).find('.octicon').addClass('invisible');
+ $(this).find('.octicon-check').addClass('invisible');
});
if (selector === 'select-reviewers-modify' || selector === 'select-assignees-modify') {