webui: enable state on all idnode based grids

This commit is contained in:
Adam Sutton 2013-11-25 09:20:14 +00:00
parent 6137958b79
commit f0810d1e25
2 changed files with 8 additions and 0 deletions

View file

@ -909,6 +909,8 @@ tvheadend.idnode_grid = function(panel, conf)
'->', '-', 'Per page', count ]
});
var grid = new Ext.grid.EditorGridPanel({
stateful : true,
stateId : conf.url,
stripeRows : true,
title : conf.titleP,
store : store,

View file

@ -5,6 +5,12 @@ tvheadend.conf_dvbin = null;
tvheadend.conf_tsdvr = null;
tvheadend.conf_csa = null;
/* State Provider */
Ext.state.Manager.setProvider(new Ext.state.CookieProvider({
// 7 days from now
expires : new Date(new Date().getTime()+(1000*60*60*24*7)),
}));
/**
* Displays a help popup window
*/