File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,8 @@ import $ from 'jquery';
2
2
import { updateIssuesMeta } from './repo-issue.js' ;
3
3
4
4
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' ) ) {
16
7
$ ( '#issue-filters' ) . addClass ( 'hide' ) ;
17
8
$ ( '#issue-actions' ) . removeClass ( 'hide' ) ;
18
9
$ ( '#issue-actions .six' ) . prepend ( $ ( '.issue-checkbox-all' ) ) ;
You can’t perform that action at this time.
0 commit comments