LP#1691263: discourage input of newlines in MARC editor user/kmlussier/lp1691263_marc_editor_wrapping_signoff
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:10:24 +0000 (16:10 -0400)
commit5a5d759e34403314381e771ea1e05e5a55ec6061
tree123a139592bbb86590fc417190285754d8353d2b
parent11cbc1f0d5da66cd3af6355e23d3b7ae8f6842a1
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