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.2.1~1966 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0dee35346acc8851665f14a54d33a5391cc95a99;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 a73577352..0318e2ba1 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 char *lang ) const idclass_t satip_device_class = { .ic_class = "satip_client", + .ic_event = "satip_client", .ic_caption = N_("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 3d556ae79..bed348ab2 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 de86a3bf7..d44387cdc 100644 --- a/src/webui/static/app/idnode.js +++ b/src/webui/static/app/idnode.js @@ -1983,7 +1983,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(); }