Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[webui] reload the EPG store on "dvrdb" notifications
This way the DVR status icon gets updated correctly when a recording changes
state
  • Loading branch information
Jalle19 authored and perexg committed Aug 6, 2014
1 parent 6f4fc91 commit e43b0e6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/webui/static/app/epg.js
Expand Up @@ -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;
Expand Down

0 comments on commit e43b0e6

Please sign in to comment.