From e38e27c5e55850dc8a5be7082f04a0398d834d5a Mon Sep 17 00:00:00 2001 From: David Gustafsson Date: Wed, 28 Feb 2024 18:51:38 +0100 Subject: [PATCH] Bug 30255: Show hint there will be no confirmation when selecting "Modify all" --- .../en/modules/tools/batch_record_modification.tt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt index 6f7f5d3703b..bdd741f3cdb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_record_modification.tt @@ -170,6 +170,11 @@
  • +
    @@ -337,7 +342,17 @@ $("a[href='#uploadfile_tab_panel']").tab("show"); } } + $(document).ready(function() { + let $modify_all_hint = $('#modify_all_hint'); + $("input[type=radio][name=op]").change(function() { + if (this.value === "modify_all") { + $modify_all_hint.show(); + } + else { + $modify_all_hint.hide(); + } + }).filter(':checked').trigger('change'); update_tab_display(); $("input[type='radio']").click(function() { -- 2.34.1