]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1691263: discourage input of newlines in MARC editor
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Feb 2018 23:04:12 +0000 (18:04 -0500)
committerKathy Lussier <klussier@masslnc.org>
Wed, 14 Mar 2018 20:48:04 +0000 (16:48 -0400)
commit363020f182873c7f7b57b7b38635f3d4577f9982
treefab9b6f6372f28fb9bb0b7b94d2ddd6099316733
parente0e1d9a79f7fde04f73ee6a8ca798c08b72f5192
LP#1691263: discourage input of newlines in MARC editor

This patch catches and discards enter keydown events when the
focus is in a contenteditable subfield value div; otherwise, newlines
can infect the MARC record.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js