From b5f40c69202eeaa3fba1d2f92c7f8872a88ba5ba 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 d86613afd55..cd29ea7d6aa 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 @@ -168,6 +168,11 @@
  • +
    @@ -328,6 +333,16 @@ update_tab_display(); }); + 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'); + $("#selectall").click(function(e){ e.preventDefault(); $(".records input[type='checkbox']").each(function(){ -- 2.48.1