From f0810d1e25597e715b10097f57ec5bab014b201f Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Mon, 25 Nov 2013 09:20:14 +0000 Subject: [PATCH] webui: enable state on all idnode based grids --- src/webui/static/app/idnode.js | 2 ++ src/webui/static/app/tvheadend.js | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 746addf9..365e0056 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -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, diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 6effc4f5..2dd626ca 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -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 */