@@ -, +, @@ during add process with leading zeroes. Nothing will happen. --- .../prog/en/modules/patron_lists/list.tt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/list.tt @@ -27,10 +27,17 @@ $(document).ready(function() { .append( "" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") " + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "" ) .appendTo( ul ); }; + + $("body").on("click",".removePatron",function(e){ + e.preventDefault(); + var divid = $(this).parent().attr("id"); + var cardnumber = divid.replace("borrower_",""); + RemovePatron(cardnumber); + }); }); function AddPatron( name, cardnumber ) { - div = "
" + name + " ( Remove )
"; + div = "
" + name + " ( " + _("Remove") + " )
"; $('#patrons_to_add').append( div ); $('#find_patron').val('').focus(); --