From dde885675418644a201d00c044233a6387d46c72 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Thu, 31 Mar 2016 21:42:06 +0000 Subject: [PATCH] Bug 16183: Confirm message upon deleting patron messages To test: 1) Go to a patron circulation page and add a message 2) Click '[Delete]' 3) Confirm that a confirm dialog shows up and 'Cancel' and 'OK' do what is expected. Sponsored-by: Catalyst IT Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt index e9d3956999..4727192f0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt @@ -47,6 +47,7 @@ var relatives_borrowernumbers = new Array(); var MSG_ADD_MESSAGE = _("Add a new message"); var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); +var MSG_CONFIRM_DELETE_MESSAGE = _("Are you sure you want to delete this message? This cannot be undone."); columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %] @@ -844,7 +845,7 @@ No patron matched [% message %] "[% message.message %]" [% IF message.branchcode == branch OR Koha.Preference('AllowAllMessageDeletion') %] - [Delete] + [Delete] [% END %] [% END %] -- 2.39.5