]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI: Fix the 'TV adapters' events (to refresh old values), fixes #3130
authorJaroslav Kysela <perex@perex.cz>
Wed, 7 Oct 2015 18:08:37 +0000 (20:08 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 7 Oct 2015 18:08:37 +0000 (20:08 +0200)
src/input/mpegts/satip/satip.c
src/webui/static/app/comet.js
src/webui/static/app/idnode.js

index a73577352cb04bcbb7dfcc34bc2f3483510c3816..0318e2ba1ddcd91b02db9221737dd9f7b8d3d9c9 100644 (file)
@@ -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,
index 3d556ae79313f3176969dc75376fb5b81161fb96..bed348ab22dca2b7750e0d934e75e7c6bf8042f0 100644 (file)
@@ -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) {
index de86a3bf702da252bddedde88b2745dc544fabdf..d44387cdc027eef6396afdf4ae6e97bc109d8e00 100644 (file)
@@ -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();
         }