From: Jaroslav Kysela Date: Wed, 7 Oct 2015 18:08:37 +0000 (+0200) Subject: WEBUI: Fix the 'TV adapters' events (to refresh old values), fixes #3130 X-Git-Tag: v4.0.7~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06ea96446d301f9198799cf6a3547cf474c5769f;p=thirdparty%2Ftvheadend.git WEBUI: Fix the 'TV adapters' events (to refresh old values), fixes #3130 --- diff --git a/src/input/mpegts/satip/satip.c b/src/input/mpegts/satip/satip.c index 3fa7a3cf5..af61e5f1f 100644 --- a/src/input/mpegts/satip/satip.c +++ b/src/input/mpegts/satip/satip.c @@ -191,6 +191,7 @@ satip_device_class_tunercfg_notify ( void *o ) const idclass_t satip_device_class = { .ic_class = "satip_client", + .ic_event = "satip_client", .ic_caption = "SAT>IP Client", .ic_save = satip_device_class_save, .ic_get_childs = satip_device_class_get_childs, diff --git a/src/webui/static/app/comet.js b/src/webui/static/app/comet.js index aff240878..0f188c914 100644 --- a/src/webui/static/app/comet.js +++ b/src/webui/static/app/comet.js @@ -48,6 +48,7 @@ tvheadend.cometPoller = function() { tvheadend.boxid = response.boxid; for (x = 0; x < response.messages.length; x++) { m = response.messages[x]; + if (0) console.log(JSON.stringify(m), null, " "); try { tvheadend.comet.fireEvent(m.notificationClass, m); } catch (e) { diff --git a/src/webui/static/app/idnode.js b/src/webui/static/app/idnode.js index 7c41ddb66..30f44b6d5 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -1901,7 +1901,7 @@ tvheadend.idnode_tree = function(panel, conf) } function updatenode(o) { - if (o.uuid) { + if ('change' in o || 'delete' in o) { tree.getRootNode().reload(); tree.expandAll(); }