[Koha-bugs] [Bug 24758] Allow folding sections in patron edition form
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 28 13:01:36 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24758
--- Comment #1 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 99755
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99755&action=edit
Screenshot
I've managed to add this behavior with JS customisation.
===
$(document).ready(function() {
if ($('#pat_memberentrygen').size()) {
// Prepare
$("fieldset").children("legend")
.addClass("bl-autorepli")
.append(' <i class="fa fa-caret-down"><i class="fa fa-caret-right"
style="display:none">');
// Onclick
$("fieldset legend.bl-autorepli").on("click", function() {
$(this).siblings("ol,table").toggle();
$(this).children("i.fa").toggle();
});
// Hide by default
$("fieldset#memberentry_address,
fieldset#memberentry_altaddress").children("legend.bl-autorepli").click();
}
});
===
Needs rework.
Feel free to propose a patch.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list