LP#1691263: discourage input of newlines in MARC editor user/gmcharlt/lp1691263_marc_editor_wrapping
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Feb 2018 23:04:12 +0000 (18:04 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Feb 2018 23:04:12 +0000 (18:04 -0500)
commita20d52cc2d05b5c86dc63cad0675ddf4ca18eb8b
tree5d92aa49b562923df89119e61f6af27c595fad76
parent0fb08737e92e57e541fe41ae7fb3eb3d79ebabfc
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>
Open-ILS/web/js/ui/default/staff/cat/services/marcedit.js