[webui] reload the EPG store on "dvrdb" notifications

This way the DVR status icon gets updated correctly when a recording changes
state
This commit is contained in:
Sam Stenvall 2014-08-05 11:31:37 +03:00 committed by Jaroslav Kysela
parent 6f4fc91fef
commit e43b0e6e00

View file

@ -295,6 +295,14 @@ tvheadend.epg = function() {
name: 'serieslink'
}])
});
/**
* Listener for DVR notifications. We want to update the EPG grid when a
* recording is finished/deleted etc. so the status icon gets updated.
*/
tvheadend.comet.on('dvrdb', function() {
epgStore.reload();
});
function setMetaAttr(meta, record) {
var now = new Date;