From: Jaroslav Kysela Date: Wed, 6 May 2015 20:39:55 +0000 (+0200) Subject: WebUI: improve notifications for the input tree (adapter add/del) X-Git-Tag: v4.1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dec62bf718bb1f21411f82c256baa420ac3687e0;p=thirdparty%2Ftvheadend.git WebUI: improve notifications for the input tree (adapter add/del) --- diff --git a/src/input.c b/src/input.c index c346dee6f..b1bcf793d 100644 --- a/src/input.c +++ b/src/input.c @@ -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"); } /* diff --git a/src/webui/static/app/tvadapters.js b/src/webui/static/app/tvadapters.js index 9cfa5fde9..6f72916c5 100644 --- a/src/webui/static/app/tvadapters.js +++ b/src/webui/static/app/tvadapters.js @@ -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'); }