]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
mdhelp: add help button to status tabs
authorJaroslav Kysela <perex@perex.cz>
Tue, 19 Apr 2016 08:50:07 +0000 (10:50 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 19 Apr 2016 08:50:07 +0000 (10:50 +0200)
docs/markdown/status_connections.md
docs/markdown/status_service_mapper.md
docs/markdown/status_stream.md
docs/markdown/status_subscriptions.md
src/webui/static/app/servicemapper.js
src/webui/static/app/status.js

index 4a9985addb3f224cee630f8094cc921eacef8440..1582c7faaf4165b41a00716ef3d869f57c432813 100644 (file)
@@ -16,8 +16,6 @@ Button     | Function
 -----------|---------
 **Help**   | Display this help page.
 
-##Note: FIXME: Need to add a help button!
-
 ---
 
 ####Grid Items
index 3516e659a5c6dbd9fbc716e6d5b41152e5633da4..75689a5891fe421eb42913e0fcaec1e74cad28ed 100644 (file)
@@ -16,8 +16,6 @@ Button     | Function
 -----------|---------
 **Help**   | Display this help page.
 
-##Note: FIXME: Need to add a help button!
-
 ---
 
 ####Grid Items
index f4bd11d2b9701f2a3cb1b066f42914228a621c79..7ac275c592e0aadb72da09bfc3e0376e8f17aa90 100644 (file)
@@ -16,8 +16,6 @@ Button     | Function
 -----------|---------
 **Help**   | Display this help page.
 
-##Note: FIXME: Need to add a help button!
-
 ---
 
 ####Grid Items
index 2fe7a571b634fc94f41bbd7df2112538c8d586cd..17d323d6c0cee1fc2b811282877fd92d1073e5d2 100644 (file)
@@ -16,8 +16,6 @@ Button     | Function
 -----------|---------
 **Help**   | Display this help page.
 
-##Note: FIXME: Need to add a help button!
-
 ---
 
 ####Grid Items
index 042ece76ffdcc87d9a8ce5039ac38947d6063083..b56df8b592de915876b85b870c1ac8dbd81bc092 100644 (file)
@@ -44,6 +44,21 @@ tvheadend.service_mapper_status = function(panel, index)
         items: [ok, ignore, fail, active, prog]
     });
 
+    /* Top panel */
+    var tpanel = new Ext.Panel({
+        title: _('Service Mapper'),
+        iconCls: 'serviceMapper',
+        layout: 'fit',
+        tbar: ['->', {
+             text: _('Help'),
+             iconCls: 'help',
+             handler: function() {
+                 new tvheadend.mdhelp('status_service_mapper')
+             }
+        }],
+        items: [mpanel]
+    });
+
     /* Comet */
     tvheadend.comet.on('servicemapper', function(m) {
         var n = m.ok + m.ignore + m.fail;
@@ -71,7 +86,7 @@ tvheadend.service_mapper_status = function(panel, index)
     });
 
     tvheadend.service_mapper_status_panel = mpanel;
-    tvheadend.paneladd(panel, mpanel, index);
+    tvheadend.paneladd(panel, tpanel, index);
 }
 
 /*
index 40d4b5d48990b3398c7a37e3a03b8d8bcc426507..2c3d02c2bce54a9dd23c48bfbe3bee97fe822bec 100644 (file)
@@ -173,6 +173,13 @@ tvheadend.status_subs = function(panel, index)
         }
 
         subs = new Ext.grid.GridPanel({
+            tbar: ['->', {
+                text: _('Help'),
+                iconCls: 'help',
+                handler: function() {
+                    new tvheadend.mdhelp('status_subscriptions')
+                }
+            }],
             border: false,
             loadMask: true,
             stripeRows: true,
@@ -447,6 +454,13 @@ tvheadend.status_streams = function(panel, index)
         }));
 
         grid = new Ext.grid.GridPanel({
+            tbar: ['->', {
+                text: _('Help'),
+                iconCls: 'help',
+                handler: function() {
+                    new tvheadend.mdhelp('status_streams')
+                }
+            }],
             border: false,
             loadMask: true,
             stripeRows: true,
@@ -584,6 +598,13 @@ tvheadend.status_conns = function(panel, index) {
             }]);
 
         grid = new Ext.grid.GridPanel({
+            tbar: ['->', {
+                text: _('Help'),
+                iconCls: 'help',
+                handler: function() {
+                    new tvheadend.mdhelp('status_connections')
+                }
+            }],
             border: false,
             loadMask: true,
             stripeRows: true,