Automatically remove column select filter if unapplyable
authorJoey Schulze <joey@infodrom.org>
Mon, 21 Sep 2015 09:40:19 +0000 (11:40 +0200)
committerJoey Schulze <joey@infodrom.org>
Mon, 21 Sep 2015 09:40:19 +0000 (11:40 +0200)
commit74a8f0e68b0c99e6f4b67456c6262a2ff4edcc6e
treec7c138d79c3b0247785dbc5697269d5c2c60b557
parentba70519ab89175ab7f931ad845d0386c6cb1792c
Automatically remove column select filter if unapplyable

When the filter value is stored in a cookie the filter is
automatically reapplied on page reload.  If table values have changed
in the meantime so that the original filter value is not available
anymore the LiveGrid will display 0 rows and the select filter element
will display __ALL__ (since the value it is set to is not available).

The problem could be resolved by filtering for a different value and
then resetting the filter select element back to __ALL__.  However,
since the filter already displays __ALL__ most users won't notice that
the grid is already filtered.
minsrc/ricoLiveGrid.js