···8484 hideElem($('.oauth2_use_custom_url_field'));
8585 $('.oauth2_use_custom_url_field input[required]').removeAttr('required');
86868787- if ($('#oauth2_use_custom_url').is(':checked')) {
8787+ if (document.getElementById('oauth2_use_custom_url')?.checked) {
8888 for (const custom of ['token_url', 'auth_url', 'profile_url', 'email_url', 'tenant']) {
8989 if (applyDefaultValues) {
9090 $(`#oauth2_${custom}`).val($(`#${provider}_${custom}`).val());
···9898 }
9999100100 function onEnableLdapGroupsChange() {
101101- toggleElem($('#ldap-group-options'), $('.js-ldap-group-toggle').is(':checked'));
101101+ toggleElem($('#ldap-group-options'), $('.js-ldap-group-toggle')[0].checked);
102102 }
103103104104 // New authentication
+1-1
web_src/js/features/common-global.js
···373373374374 if (attrTargetAttr) {
375375 $attrTarget[0][attrTargetAttr] = attrib.value;
376376- } else if ($attrTarget.is('input') || $attrTarget.is('textarea')) {
376376+ } else if ($attrTarget[0].matches('input, textarea')) {
377377 $attrTarget.val(attrib.value); // FIXME: add more supports like checkbox
378378 } else {
379379 $attrTarget.text(attrib.value); // FIXME: it should be more strict here, only handle div/span/p
+3-3
web_src/js/features/repo-legacy.js
···139139140140 hasUpdateAction = $listMenu.data('action') === 'update'; // Update the var
141141142142- const $clickedItem = $(this);
142142+ const clickedItem = this; // eslint-disable-line unicorn/no-this-assignment
143143 const scope = $(this).attr('data-scope');
144144145145 $(this).parent().find('.item').each(function () {
···148148 if ($(this).attr('data-scope') !== scope) {
149149 return true;
150150 }
151151- if (!$(this).is($clickedItem) && !$(this).hasClass('checked')) {
151151+ if (this !== clickedItem && !$(this).hasClass('checked')) {
152152 return true;
153153 }
154154- } else if (!$(this).is($clickedItem)) {
154154+ } else if (this !== clickedItem) {
155155 // Toggle for other labels
156156 return true;
157157 }
+1-1
web_src/js/modules/fomantic/dropdown.js
···199199 if (!$item) $item = $menu.find('> .item.selected'); // when dropdown filters items by input, there is no "value", so query the "selected" item
200200 // if the selected item is clickable, then trigger the click event.
201201 // we can not click any item without check, because Fomantic code might also handle the Enter event. that would result in double click.
202202- if ($item && ($item.is('a') || $item.hasClass('js-aria-clickable'))) $item[0].click();
202202+ if ($item && ($item[0].matches('a') || $item.hasClass('js-aria-clickable'))) $item[0].click();
203203 }
204204 });
205205