]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 21 May 2014 07:43:33 +0000 (09:43 +0200)
commitfc50362c231ceb9a410dcbcbce94b8124db1aa13
tree9db621808a0ca90a216650907132ff803d80709a
parent7d40a4c9081d50b15652f80a0d65d8a60f7a57b5
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>
(cherry picked from commit 7faff33c8b9bd670cf7813f4cefb7aee38709ebb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload-images.tt