Skip to content

Commit 5d9fb50

Browse files
committed
Remove range select function
1 parent 942bf9f commit 5d9fb50

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

web_src/js/features/common-issue.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,8 @@ import $ from 'jquery';
22
import {updateIssuesMeta} from './repo-issue.js';
33

44
export function initCommonIssue() {
5-
let checkboxfirst;
6-
const checkboxOperate = (e) => {
7-
const issuecheckbox = $('.issue-checkbox input');
8-
if (e.shiftKey && checkboxfirst !== undefined) {
9-
for (let i = checkboxfirst + 1, j = issuecheckbox.index($(e.currentTarget).find('input')); i < j; i++) {
10-
issuecheckbox[i].checked = 1;
11-
}
12-
} else {
13-
checkboxfirst = issuecheckbox.index($(e.currentTarget).find('input'));
14-
}
15-
if (issuecheckbox.is(':checked')) {
5+
const checkboxOperate = () => {
6+
if ($('.issue-checkbox input').is(':checked')) {
167
$('#issue-filters').addClass('hide');
178
$('#issue-actions').removeClass('hide');
189
$('#issue-actions .six').prepend($('.issue-checkbox-all'));

0 commit comments

Comments
 (0)