Rmaint tidy

This commit is contained in:
Baptiste Wojtkowski 2026-08-21 06:58:29 +00:00
parent a109cba248
commit 0a3130bfdd
No known key found for this signature in database
GPG Key ID: 47A8A13E10BC0D40
3 changed files with 21 additions and 21 deletions

View File

@ -426,28 +426,28 @@
function updateCheckboxes() {
if (opac_display && opac_editable) {
if (!opac_display.checked) {
setDisabled(opac_editable, true);
} else {
setDisabled(opac_editable, false);
}
}
if (opac_editable && opac_mandatory) {
if (opac_editable.checked) {
setDisabled(opac_mandatory, false);
} else {
setDisabled(opac_mandatory, true);
}
}
}
function toggle_search_default() {
if ($("#staff_searchable").is(":checked")) {
$("#searched_by_default").prop("disabled", false);
if (!opac_display.checked) {
setDisabled(opac_editable, true);
} else {
$("#searched_by_default").prop("disabled", true).prop("checked", false);
setDisabled(opac_editable, false);
}
}
if (opac_editable && opac_mandatory) {
if (opac_editable.checked) {
setDisabled(opac_mandatory, false);
} else {
setDisabled(opac_mandatory, true);
}
}
}
function toggle_search_default() {
if ($("#staff_searchable").is(":checked")) {
$("#searched_by_default").prop("disabled", false);
} else {
$("#searched_by_default").prop("disabled", true).prop("checked", false);
}
}
opac_display?.addEventListener("change", updateCheckboxes);
opac_editable?.addEventListener("change", updateCheckboxes);

View File

@ -1388,7 +1388,7 @@
<li>
<a class="dropdown-item" target="_blank" href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cells.cell | $raw %]"
><i class="fa fa-barcode" aria-hidden="true"></i> Check out</a
>
>
</li>
</ul>
</div>

View File

@ -361,7 +361,7 @@ subtest 'login_core() authentication tests' => sub {
return {
config => {
accounts => { $uid => { id => $uid, institution => 'CPL', password => 'goodpw' } },
institutions => { CPL => { id => 'CPL', implementation => 'ILS', policy => {} } },
institutions => { CPL => { id => 'CPL', implementation => 'ILS', policy => {} } },
},
};
};