[koha-commits] main Koha release repository branch new/bug_6209 created. v3.12.00-alpha2-161-gf634c4c

Git repo owner gitmaster at git.koha-community.org
Sat Mar 23 05:08:45 CET 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, new/bug_6209 has been created
        at  f634c4cfb1cea4742cbd9cf7812eb7e671a1407c (commit)

- Log -----------------------------------------------------------------
commit f634c4cfb1cea4742cbd9cf7812eb7e671a1407c
Author: Paul Poulain <paul.poulain at biblibre.com>
Date:   Fri Mar 22 12:14:37 2013 +0100

    Bug 6209 follow-up, make strings translatable
    
    Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
    Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

commit c28f7d7de5d1e1a8d5e0038b76fce74397c3c489
Author: Owen Leonard <oleonard at myacpl.org>
Date:   Tue Mar 20 15:20:25 2012 +0100

    Bug 6209 [Revised] Standardize on one plugin for client-side form validation
    
    This patch adds the jQuery "Validation" plugin
    (http://docs.jquery.com/Plugins/Validation) and includes it by
    default in the staff client along with an include file containing
    translatable strings for all of the plugin's possible messages.
    
    The staff client's main JavaScript file has been modified to perform
    automatic validation of any form with the class "validated."
    
    For a simple example I have modified the library entry form
    to mark required fields as required (something which had not
    been done before). Each required field has been given a class,
    "required" and the HTML5 attribute "required." The former adds
    the hook for the plugin, the latter adds browser-based validation
    in recent browsers (and which will be superceded by the plugin
    if JavaScript is enabled).
    
    This will check for inputs classed "required" without any
    additional configuration. More complex forms (with specific
    data types, for instance) will require more inline JavaScript
    configuration.
    
    $("#FormID").validate({ /* configuration details */ });
    
    Also added to the library entry form are checks on the email and URL
    fields via classes ("email" and "url", respectively). This demonstrates
    validation of content without forcing the field to be required.
    
    To test, go to Administration -> Libraries and Groups and choose
    "New library." Submit the form without entering a library code
    or name. You should be prevented from submitting the form and be
    shown an error message by each field. Perform the same check with an
    existing entry.
    
    To test browser-based validation, disable JavaScript and follow
    the same procedure.
    
    Revision rebases the patch against current master and adds missing
    "//<![CDATA["
    
    Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel at gmail.com>
    
    Comment: Work as described with new or existing library.
    No errors.
    Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
    Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

commit 3cd9293b6a89faf4cd4308ea0f411770e779ce34
Merge: 9243374 44d285b
Author: Jared Camins-Esakov <jcamins at cpbibliography.com>
Date:   Fri Mar 22 23:57:05 2013 -0400

    Merge branch 'bug_5343' into 3.12-master

-----------------------------------------------------------------------


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list