From e43b0e6e000835a162305a0643296eafe5c2f7a9 Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Tue, 5 Aug 2014 11:31:37 +0300 Subject: [PATCH] [webui] reload the EPG store on "dvrdb" notifications This way the DVR status icon gets updated correctly when a recording changes state --- src/webui/static/app/epg.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 588b2ab2..e1024339 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -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;