[Koha-bugs] [Bug 22657] Remove JavaScript from OPAC suggestion validation of required fields
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Apr 12 21:55:19 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22657
Bin <bin.wen at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #87526|0 |1
is obsolete| |
--- Comment #2 from Bin <bin.wen at inlibro.com> ---
Created attachment 87939
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=87939&action=edit
Bug 22657: Remove JavaScript from OPAC suggestion validation of required fields
This patch modifies the OPAC suggestion form so that it doesn't require
JavaScript for form validation. This change doesn't alter the behavior
of the form for users but does fit with the general goal of progressive
enhancement for the OPAC.
The patch adds "required" labels to required fields to better identify
required fields.
To test, apply the patch and make sure there are required fields
specified in the OPACSuggestionMandatoryFields system preference.
- Log in to the OPAC and go to Your purchase suggestions -> New
purchase suggestion.
- Verify that the fields specified in OPACSuggestionMandatoryFields are
highlighted and marked "required."
- Verify that you can't submit the form without filling out these
fields.
Signed-off-by: Bin Wen <bin.wen at inlibro.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list