From fd1690f825ed771247e856795acd52ef7ac7ec6f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 19 Feb 2014 11:59:33 -0500 Subject: [PATCH] Bug 11792 - Use validation plugin when creating new currency The page for adding a new currency includes some custom form validation JavaScript which can be removed in favor of HTML5 validation attributes and Koha's built-in validation plugin. This patch does so. To test, apply the patch and go to Administration -> Currencies & Exchange rates -> New currency. Try submitting the form without entering a currency, rate, and/or symbol. This should trigger a validation warning. Submission of the form with valid data should work correctly. Editing an existing currency should also work correctly. Signed-off-by: Chris Cormack Signed-off-by: Jonathan Druart --- .../prog/en/modules/admin/currency.tt | 37 +++++--------------- 1 file changed, 8 insertions(+), 29 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index def9a02..670b653 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -7,27 +7,6 @@ [% INCLUDE 'doc-head-close.inc' %]