From bdf0cce6161e10e685113eeb1828f05a275d8002 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 9f130045cb4..d71f1b72bfa 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 @@ -166,6 +166,11 @@
  • +
    Cancel @@ -324,6 +329,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(); + } + }).trigger('change'); + $("#selectall").click(function(e){ e.preventDefault(); $(".records input[type='checkbox']").each(function(){ -- 2.43.0