4 <!-- str/members-menu.inc -->
6 var advsearch = "[% advsearch | html %]";
7 var destination = "[% destination | html %]";
9 var CAN_user_borrowers_edit_borrowers = "[% CAN_user_borrowers_edit_borrowers | html %]";
11 var dateformat = "[% Koha.Preference('dateformat') | html %]";
14 var number_of_adult_categories = 0;
16 borrowernumber = "[% patron.borrowernumber | html %]";
17 [% IF patron.is_child %]
18 [% SET adult_categories = Categories.scalar.all(category_type => 'A') %]
19 [% SET number_of_adult_categories = adult_categories.count %]
20 number_of_adult_categories = [% number_of_adult_categories | html %]
24 [% IF ( patron.image ) %]
25 $("body").on("click", "#delpicture", function(){
26 return confirm(_("Are you sure you want to delete this patron image? This cannot be undone."));
28 $('#manage-patron-image').find("input[value*=Upload]").click(function(){
29 if($("#uploadfile").val() == ""){
30 alert(_("Please choose a file to upload"));
33 return confirm(_("Are you sure you want to replace the current patron image? This cannot be undone."));
37 <!-- / str/members-menu.inc -->