From cd0f568de1c3998e789164587c9e35e9d46a2c49 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 6 Jun 2019 15:16:35 +0000 Subject: [PATCH] Bug 11642: Add confirmation and tooltips to batch deletion tool Signed-off-by: Mark Tompsett Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize (cherry picked from commit f897ff77c8774b1ad942665fc18b7a012312240f) Signed-off-by: Fridolin Somers --- .../prog/en/modules/tools/cleanborrowers.tt | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt index 40aae31c9e..0ba2d02ebe 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt @@ -148,10 +148,10 @@
[% IF patrons_to_delete.size %]
What do you want to do for deleted patrons? - + -
+

@@ -231,6 +231,13 @@ $('#branch').change(function() { $('#selectlibrary').submit(); }); + $("form[name='f2']").on('submit',function(){ + if( $("#delete").attr("checked") ){ + if( !confirm(_("These patrons will be permanently removed from the database and cannot be recovered")) ){ + return false; + } + } + }); }); /** -- 2.39.5