From: Nick Clemens Date: Thu, 6 Jun 2019 15:16:35 +0000 (+0000) Subject: Bug 11642: Add confirmation and tooltips to batch deletion tool X-Git-Tag: v19.11.00~1058 X-Git-Url: http://git.equinoxoli.org/?p=koha.git;a=commitdiff_plain;h=f897ff77c8774b1ad942665fc18b7a012312240f 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 --- 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 40aae31..0ba2d02 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; + } + } + }); }); /**