LP#1841089 Apply button in Patron Bill History screen in a confusing location user/dbriem/lp1841089_bill_history_remove_apply_button
authorDan Briem <dbriem@wlsmail.org>
Sat, 24 Aug 2019 17:56:54 +0000 (13:56 -0400)
committerDan Briem <dbriem@wlsmail.org>
Sat, 24 Aug 2019 17:56:54 +0000 (13:56 -0400)
commit1855784d366bcd3628e93a754c1a76cb5d37ee0b
treebed1a2b5a1b9fe9dae51066e4f5d33fe5337aecd
parent5489249b535f2817a5da3e862dd59f1501434e87
LP#1841089 Apply button in Patron Bill History screen in a confusing location

It's possible to miss the apply button for the date range in bill history
because it's located before the datepickers. The interface also allows
invalid date ranges.

This removes the apply button and watches the start and finish dates. If it's
not first init and they are valid date objects in a valid date range, the
grid refreshes with the new date range query. If start > finish they are set
equal to each other to force a valid range.

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Open-ILS/src/templates/staff/circ/patron/t_bill_history.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js