]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Prevent creation of authority records that are truncated by one letter
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Nov 2010 05:23:56 +0000 (05:23 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 15 Nov 2010 05:23:56 +0000 (05:23 +0000)
commitf0f6ecdbde87ecd07f8a37d498ee0dbf38ccbc54
tree9229c0851a20c189c7c0294ceb0183e3f10a5b70
parent350e1c919e042f1874898076006baf9d055a0fc5
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/trunk@18731 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/server/cat/marcedit.js