From adc4c8ac75685b2b04281bb07c98277f3b00e5fd Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 4 Mar 2016 12:07:44 -0500 Subject: [PATCH] Bug 15982 - Serials numbering patterns can be deleted without warning A JavaScript alert should ask the user to confirm deletion of a serial numbering pattern. This patch adds this to the template. To test, apply the patch and go to Serials -> Manage numbering patterns. - In the list of patterns, click any "Delete" link. - Verify that a JavaScript alert is triggered. - Test that cancelling the alert cancels the deletion operation. - Test that confirming the alert allows the deletion to complete. Signed-off-by: Nicole C Engard --- .../prog/en/modules/serials/subscription-numberpatterns.tt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt index e0c56fe..07c1f0d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-numberpatterns.tt @@ -4,6 +4,11 @@ [% INCLUDE 'calendar.inc' %] @@ -318,7 +328,7 @@ function show_blocking_subs() { [% numberpattern.displayorder %] Edit | - Delete + Delete [% END %] -- 2.1.4