mirror of
https://github.com/openwrt/luci.git
synced 2026-02-04 12:06:01 +08:00
luci-mod-system: expose table filters via flag
Filters might not be everyone's aesthetics, so hide filters by default and expose a global flag which can be set under System -> System -> Language and Style. Only tables which have .filterrow set to true will show filters. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -252,6 +252,12 @@ return view.extend({
|
||||
if (k[i].charAt(0) != '.')
|
||||
o.value(uci.get('luci', 'themes', k[i]), k[i]);
|
||||
|
||||
o = s.taboption('language', form.Flag, '_tablefilters', _('Table Filters'));
|
||||
o.default = o.disabled;
|
||||
o.uciconfig = 'luci';
|
||||
o.ucisection = 'main';
|
||||
o.ucioption = 'tablefilters';
|
||||
|
||||
/*
|
||||
* NTP
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user