LP#1785061: Split filter value on comma for "in list" and the like user/rsteed/lp1785061_reporter_inlist_value_splitting
authorRemington Steed <rjs7@calvin.edu>
Thu, 2 May 2019 13:15:30 +0000 (09:15 -0400)
committerRemington Steed <rjs7@calvin.edu>
Tue, 7 May 2019 16:03:29 +0000 (12:03 -0400)
commit534c15f88b4ad95b2d11473665441c82ce470483
treef09ab4fbebe92d14303461c749a7fd043a0a203a
parent39f15482ebfdb7933701d9ce9db8d1e64d4d2184
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>
Open-ILS/web/js/ui/default/staff/reporter/template/app.js