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:46:25 +0000 (16:46 -0400)
commit404ccc6908f0fd0ba57f681402b03c0360bfb140
treef7121b76f20e4144dcd5a8add7c12f98c46d5ddc
parentf987c1ade801d0102c46ada465448d873413a634
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