From 32d6cbc3cfa05875fae4f11c45520e700c727d57 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 --- 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 aa7bbdb..f5e06ec 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.7.0