mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 15:13:53 +03:00
Backport #23303 Alt doesn't work on all browsers, the simplest solution for v1.19 is to just not require it and toggle the label by just clicking. Part of #22974 Co-authored-by: Brecht Van Lommel <brecht@blender.org>
This commit is contained in:
parent
233a399706
commit
af4767df5c
1 changed files with 1 additions and 6 deletions
|
@ -145,7 +145,6 @@ export function initRepoCommentForm() {
|
|||
|
||||
const clickedItem = $(this);
|
||||
const scope = $(this).attr('data-scope');
|
||||
const canRemoveScope = e.altKey;
|
||||
|
||||
$(this).parent().find('.item').each(function () {
|
||||
if (scope) {
|
||||
|
@ -153,11 +152,7 @@ export function initRepoCommentForm() {
|
|||
if ($(this).attr('data-scope') !== scope) {
|
||||
return true;
|
||||
}
|
||||
if ($(this).is(clickedItem)) {
|
||||
if (!canRemoveScope && $(this).hasClass('checked')) {
|
||||
return true;
|
||||
}
|
||||
} else if (!$(this).hasClass('checked')) {
|
||||
if (!$(this).is(clickedItem) && !$(this).hasClass('checked')) {
|
||||
return true;
|
||||
}
|
||||
} else if (!$(this).is(clickedItem)) {
|
||||
|
|
Loading…
Reference in a new issue