Rmaint tidy
This commit is contained in:
parent
a109cba248
commit
0a3130bfdd
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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 => {} } },
|
||||
},
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue