LP#1785061: Split filter value on comma for "in list" and the like
authorRemington Steed <rjs7@calvin.edu>
Thu, 2 May 2019 13:15:30 +0000 (09:15 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 22 May 2019 14:50:39 +0000 (10:50 -0400)
commit8ca467a0cdc08158888d4b0eb49af5d5cb64bfa5
treeb75cc390b3056a9462e40dcbc84b2179b0b68ea0
parentbe5799711497dc3ddb5faf032254734bc0dcf1c2
LP#1785061: Split filter value on comma for "in list" and the like

This commit borrows directly from the XUL reporter code (see
function __default_value_event_handler () in
Open-ILS/web/reports/xul/template-config.js). Basically, when the filter
value is saved, certain cases need special treatment, such as splitting
an "in list" value on commas. This commit includes a helper function
which does the special treatment and saves the filter value. This helper
is called both when the value itself is changed, and when the operator
is changed.

Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/reporter/template/app.js