From 1e691ecf3e8b1faa982e2696a235004321ad484a 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 --- .../intranet-tmpl/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.11.0