]> 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:09:34 +0000 (20:09 +0200)
src/input/mpegts/satip/satip.c
src/webui/static/app/comet.js
src/webui/static/app/idnode.js

index 3fa7a3cf5aa4c5820880cea675b97157d512e1c2..af61e5f1f65578b74fb5cc1bd7190cfcca64e772 100644 (file)
@@ -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,
index aff240878091431e976120eb5ef324b8ac68d25b..0f188c9149e96578ca58ac0a7091e8c0de618ff5 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 7c41ddb66bec057bb48adbe2d83a377335979483..30f44b6d51e4bf7ea75cdfd192c068ea02452720 100644 (file)
@@ -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();
         }