Bug #2974 Adding category code to BorrowerMandatoryField produced a "The following...
authorGarry Collum <gcollum@gmail.com>
Fri, 1 May 2009 01:54:31 +0000 (21:54 -0400)
committerGalen Charlton <galen.charlton@liblime.com>
Fri, 1 May 2009 21:47:09 +0000 (16:47 -0500)
commit1eb9154b731e9936ae0622188a6e0c382d6b478a
treeccbc8c360edcb53b356455ff3a80cacb07487b3e
parent4dbe34f231c9e16aeed3d92edb0fbb61ed22c561
Bug #2974 Adding category code to BorrowerMandatoryField produced a "The following fields are mandatory: categorycode"

If you made a column that is implemented by a select box mandatory in
BorrowerMandatoryField, Members.js would throw an error on the first
element.  The original intent of the function was probably to catch
the first option for a drop-down list such as "Salutation" where the
text is blank.  Added code to check for an empty string in the first
element.

You can test this by making salutation (title) mandatory.

Also fixed some typos in some of the comments.  Why?  Because I'm a Librarian.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/js/members.js