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)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Tue, 26 May 2009 19:15:22 +0000 (21:15 +0200)
commit6f7b4fc8a728935b309b558dce0fa3d003b64d21
tree0732ecf341c422905e93ed59e003c5ac038c5563
parentd189c46df5fbabefba9e3c57c02585aaf974cb79
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>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/js/members.js