Prevent creation of authority records that are truncated by one letter
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Nov 2010 05:24:38 +0000 (05:24 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Nov 2010 05:24:38 +0000 (05:24 +0000)
commit2d64c125cae3ad55b4e166779be5b4def13918c3
tree163f23b0e4bee2271f30a17c72fb90c8a80c9d9d
parent20d941cdd9ca4e94ba91f2b398a91b5ffddd80da
Prevent creation of authority records that are truncated by one letter

The summarizeField() function grabbed the values of the XUL elements,
which were set by the keypress event listeners on the XUL elements.
However, the keypress event listener seems to capture the value of
the XUL element before the value of the new key is appended to the
existing value in a textbox - so, when you typed a new subfield, then
right-clicked to create an authority, the value that was captured was
missing the final character.

Adding the "input" event to the registered listeners captures the
actual value for creating an authority and solves the problem. It
might be possible to remove the keypress event listeners, but for
now we'll take the cautious route.

Address Launchpad bug 669445

git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18732 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/cat/marcedit.js