]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WebUI: improve notifications for the input tree (adapter add/del)
authorJaroslav Kysela <perex@perex.cz>
Wed, 6 May 2015 20:39:55 +0000 (22:39 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 6 May 2015 20:39:55 +0000 (22:39 +0200)
src/input.c
src/webui/static/app/tvadapters.js

index c346dee6f27ee5812c5c608ff9e49a32afd91c4c..b1bcf793d9a873adf6b836fb42fe17cb281ee1f9 100644 (file)
@@ -51,6 +51,8 @@ tvh_hardware_create0
   /* Load config */
   if (conf)
     idnode_load(&th->th_id, conf);
+
+  notify_reload("hardware");
   
   return o;
 }
@@ -65,6 +67,7 @@ tvh_hardware_delete ( tvh_hardware_t *th )
   // TODO
   LIST_REMOVE(th, th_link);
   idnode_unlink(&th->th_id);
+  notify_reload("hardware");
 }
 
 /*
index 9cfa5fde92d66e103d5f3b89226302a8470f9a7c..6f72916c5f38655009080389477ec03cebccc397 100644 (file)
@@ -5,6 +5,7 @@ tvheadend.tvadapters = function(panel, index) {
         title: 'TV adapters',
         iconCls: 'tvCards',
         tabIndex: index,
+        comet: 'hardware',
         help: function() {
             new tvheadend.help('TV adapters', 'config_tvadapters.html');
         }