Skip to content

Commit 892beb8

Browse files
committed
fix
1 parent 4299c3b commit 892beb8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

web_src/js/features/admin/users.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ export function initAdminUserListSearchForm() {
1616
}
1717
}
1818

19-
$form.find(`input[type=radio]`).click(() => {
20-
$form.submit();
19+
$form.find(`input[type=radio]`).on('click', () => {
20+
$form.trigger('submit');
2121
return false;
2222
});
2323

24-
$form.find('.j-reset-status-filter').click(() => {
24+
$form.find('.j-reset-status-filter').on('click', () => {
2525
$form.find(`input[type=radio]`).each((_, e) => {
2626
const $e = $(e);
2727
if ($e.attr('name').startsWith('status_filter[')) {
2828
$e.prop('checked', false);
2929
}
3030
});
31-
$form.submit();
31+
$form.trigger('submit');
3232
return false;
3333
});
3434
}

web_src/js/features/repo-legacy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function initRepoCommentForm() {
5757
const $selectBranch = $('.ui.select-branch');
5858
const $branchMenu = $selectBranch.find('.reference-list-menu');
5959
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 () {
6161
const selectedValue = $(this).data('id');
6262
const editMode = $('#editing_mode').val();
6363
$($(this).data('id-selector')).val(selectedValue);

web_src/js/features/repo-projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function initRepoProject() {
142142
});
143143

144144
$('.delete-project-board').each(function () {
145-
$(this).click(function (e) {
145+
$(this).on('click', function (e) {
146146
e.preventDefault();
147147

148148
$.ajax({
@@ -158,7 +158,7 @@ export function initRepoProject() {
158158
});
159159
});
160160

161-
$('#new_board_submit').click(function (e) {
161+
$('#new_board_submit').on('click', function (e) {
162162
e.preventDefault();
163163

164164
const boardTitle = $('#new_board');

0 commit comments

Comments
 (0)