WEBUI JS: EPG - do not restore sorting and filters from cookie

This commit is contained in:
Jaroslav Kysela 2014-10-01 13:36:13 +02:00
parent 4861168d70
commit ab8af7c990

View file

@ -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();
});