From ab8af7c990d71c9d2990c85c5c97bfbe0adeb76c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 1 Oct 2014 13:36:13 +0200 Subject: [PATCH] WEBUI JS: EPG - do not restore sorting and filters from cookie --- src/webui/static/app/epg.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index e201a3fb..3b1880ea 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -754,7 +754,16 @@ tvheadend.epg = function() { bbar: new Ext.ux.grid.livegrid.Toolbar({ view: epgView, displayInfo: true - }) + }), + listeners: { + beforestaterestore: { + fn: function(grid, state) { + /* do not restore sorting and filters */ + state.sort = {}; + state.filters = {}; + } + } + } }); panel.on('rowclick', rowclicked); @@ -768,7 +777,7 @@ tvheadend.epg = function() { * Only do this when the tab is visible, otherwise it won't work as * expected. */ - tvheadend.comet.on('dvrdb', function() { + tvheadend.comet.on('dvrentry', function() { if (panel.isVisible()) epgStore.reload(); });