mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 18:00:34 +00:00
Forbid jQuery .prop
and fix related issues (#29832) (followup)
Fixes the remaining jQuery `.prop()` uses. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
This commit is contained in:
parent
18256b024e
commit
4db9cbc29c
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ export function initAdminUserListSearchForm() {
|
|||
if (searchForm.StatusFilterMap) {
|
||||
for (const [k, v] of Object.entries(searchForm.StatusFilterMap)) {
|
||||
if (!v) continue;
|
||||
$form.find(`input[name="status_filter[${k}]"][value=${v}]`).prop('checked', true);
|
||||
$form.find(`input[name="status_filter[${k}]"][value=${v}]`).checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@ export function initAdminUserListSearchForm() {
|
|||
$form.find(`input[type=radio]`).each((_, e) => {
|
||||
const $e = $(e);
|
||||
if ($e.attr('name').startsWith('status_filter[')) {
|
||||
$e.prop('checked', false);
|
||||
$e.checked = false;
|
||||
}
|
||||
});
|
||||
$form.trigger('submit');
|
||||
|
|
Loading…
Reference in a new issue