Bug 21113: Corrections to patron merge confirmation prompt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2018-10-08 11:47:15 +01:00 committed by Nick Clemens
parent fd0df2ad55
commit c6198717c4

View file

@ -245,11 +245,11 @@
$('.merge-patrons').on('click', function() {
var checkedItems = $("input:checked");
if ($(checkedItems).length < 2) {
alert(_("You must select one or more patrons to remove"));
alert(_("You must select two or more patrons to merge"));
return false;
}
$(checkedItems).parents('tr').addClass("warn");
if (confirm(_("Are you sure you want to remove the selected patrons?"))) {
if (confirm(_("Are you sure you want to merge the selected patrons?"))) {
var merge_patrons_url = '/cgi-bin/koha/members/merge-patrons.pl?' +
$('.selection:checked')
.map(function() {