File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ export function initAdminUserListSearchForm() {
16
16
}
17
17
}
18
18
19
- $form . find ( `input[type=radio]` ) . click ( ( ) => {
20
- $form . submit ( ) ;
19
+ $form . find ( `input[type=radio]` ) . on ( 'click' , ( ) => {
20
+ $form . trigger ( 'submit' ) ;
21
21
return false ;
22
22
} ) ;
23
23
24
- $form . find ( '.j-reset-status-filter' ) . click ( ( ) => {
24
+ $form . find ( '.j-reset-status-filter' ) . on ( 'click' , ( ) => {
25
25
$form . find ( `input[type=radio]` ) . each ( ( _ , e ) => {
26
26
const $e = $ ( e ) ;
27
27
if ( $e . attr ( 'name' ) . startsWith ( 'status_filter[' ) ) {
28
28
$e . prop ( 'checked' , false ) ;
29
29
}
30
30
} ) ;
31
- $form . submit ( ) ;
31
+ $form . trigger ( 'submit' ) ;
32
32
return false ;
33
33
} ) ;
34
34
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export function initRepoCommentForm() {
57
57
const $selectBranch = $ ( '.ui.select-branch' ) ;
58
58
const $branchMenu = $selectBranch . find ( '.reference-list-menu' ) ;
59
59
const $isNewIssue = $branchMenu . hasClass ( 'new-issue' ) ;
60
- $branchMenu . find ( '.item:not(.no-select)' ) . click ( function ( ) {
60
+ $branchMenu . find ( '.item:not(.no-select)' ) . on ( 'click' , function ( ) {
61
61
const selectedValue = $ ( this ) . data ( 'id' ) ;
62
62
const editMode = $ ( '#editing_mode' ) . val ( ) ;
63
63
$ ( $ ( this ) . data ( 'id-selector' ) ) . val ( selectedValue ) ;
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ export function initRepoProject() {
142
142
} ) ;
143
143
144
144
$ ( '.delete-project-board' ) . each ( function ( ) {
145
- $ ( this ) . click ( function ( e ) {
145
+ $ ( this ) . on ( 'click' , function ( e ) {
146
146
e . preventDefault ( ) ;
147
147
148
148
$ . ajax ( {
@@ -158,7 +158,7 @@ export function initRepoProject() {
158
158
} ) ;
159
159
} ) ;
160
160
161
- $ ( '#new_board_submit' ) . click ( function ( e ) {
161
+ $ ( '#new_board_submit' ) . on ( 'click' , function ( e ) {
162
162
e . preventDefault ( ) ;
163
163
164
164
const boardTitle = $ ( '#new_board' ) ;
You can’t perform that action at this time.
0 commit comments