]> git.koha-community.org Git - koha.git/commit
Bug 11785 - Use validation plugin when uploading local cover images
authorOwen Leonard <oleonard@myacpl.org>
Tue, 18 Feb 2014 17:13:39 +0000 (12:13 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 20 Feb 2014 16:56:21 +0000 (16:56 +0000)
commit7faff33c8b9bd670cf7813f4cefb7aee38709ebb
treedb3036ff56ac13a0fdb086beb6b1f40f2afc2460
parent6a323ce4ce914e757d5c1c999237ad2c0efc15e9
Bug 11785 - Use validation plugin when uploading local cover images

When uploading local cover images the form should not be submitted if
no file has been selected. The existing form validation script doesn't
work. This patch adds HTML5 validation attributes and use of Koha's
built-in form validation plugin.

To test, apply the patch and go to Tools -> Upload local cover image.
Try to submit the form without selecting a file to upload. You should be
prevented from doing so. Choose a file and confirm that the upload
completes correctly.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt