@@ -, +, @@ serial frequency and numbering management - In the list of frequencies, click the "Delete" button for a frequency which is in use by at least one subscription. In the confirmation dialog, clicking the "Show subscriptions" link should display a list of titles. - Edit or create a frequency. - To test that the form submission validation is still working correctly, enter non-numeric data in the "issues per unit" field and submit the form. This should trigger an error. - In the list of numbering patterns, click the "Delete" button for a pattern which is in use by at least one subscription. In the confirmation dialog, clicking the "Show subscriptions" link should display a list of titles. - Edit or create a numbering pattern. - Confirm that the "Test pattern" button works correctly. --- .../prog/en/modules/serials/subscription-frequencies.tt | 15 +++++++++------ .../en/modules/serials/subscription-numberpatterns.tt | 11 +++++++++-- 2 files changed, 18 insertions(+), 8 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-frequencies.tt @@ -44,10 +44,6 @@ function check_form() { return false; } -function show_blocking_subs() { - $("#blocking_subs").show(); -} - $(document).ready(function() { $("#issuesperunit").change(function() { var value = $(this).val(); @@ -64,6 +60,13 @@ $(document).ready(function() { $(".delete_frequency").on("click",function(){ return confirmDelete(); }); + $("#add_frequency_form").on("submit",function(){ + return check_form(); + }); + $("#show_blocking_subs").on("click",function(e){ + e.preventDefault(); + $("#blocking_subs").show(); + }); }); //]]> @@ -99,7 +102,7 @@ $(document).ready(function() { [% ELSE %]

Edit frequency: [% description %]

[% END %] -
+ [% IF (modify) %] @@ -168,7 +171,7 @@ $(document).ready(function() { This frequency is still used by [% subscriptions.size %] subscription(s). Do you still want to delete it?

-

Show subscriptions

+

Show subscriptions