From 1275a24115d3fae32e6cac1b50435d9e8cecd444 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 22 Apr 2026 11:59:54 -0400 Subject: [PATCH] Bug 42445: Remove event attributes from list creation template This patch removes a couple of "onChange" event attributes from the lists template in favor of defining the event handler in the footer JS. To test, apply the patch and go to Lists -> New list. - Choose "Private" from the public dropdown. - In the "Allow changes to contents from" dropdown select "Permitted staff only" - A note should appear about the setting having no effect. - You should see a similar note displayed when you select "Staff only" or "Anyone seeing this list" Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind Amended-by: Jonathan Druart Tidy Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass --- .../prog/en/modules/virtualshelves/shelves.tt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 2d631abf38..49e4a0385e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -39,7 +39,7 @@
- [% IF shelf.allow_change_from_owner %] [% ELSE %] @@ -501,7 +501,7 @@
- [% IF shelf.is_private %] [% ELSE %] @@ -988,6 +988,11 @@ $("#permitted_staff_remark").hide(); } } + $(document).ready(function () { + $(".adjust_remark").on("change", function () { + AdjustRemark(); + }); + }); [% IF op == 'view' %]