@@ -, +, @@ translatable misc/translator ./translate install fr-CA --> a confirmation message appears "Are you sure you want to delete this message? This cannot be undone." with options "Cancel" and "OK". --> now the confirmation message is "Êtes-vous sûr de vouloir supprimer ce message? Cette opération est irréversible." with options "Cancel" and "OK" --- koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc | 2 +- koha-tmpl/intranet-tmpl/prog/js/members-menu.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -220,7 +220,7 @@ "[% patron_message.message | html %]" [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] - Delete + Delete [% END %] [% END %] --- a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js +++ a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js @@ -47,6 +47,10 @@ $(document).ready(function(){ }); } + $(".delete_message").click(function(){ + return window.confirm( __("Are you sure you want to delete this message? This cannot be undone.") ); + }); + $("#updatechild, #patronflags, #renewpatron, #deletepatron, #exportbarcodes").tooltip(); $("#exportcheckins").click(function(){ export_barcodes(); --