From: Jaroslav Kysela Date: Tue, 19 Apr 2016 08:50:07 +0000 (+0200) Subject: mdhelp: add help button to status tabs X-Git-Tag: v4.2.1~619 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0461356f10cdd518968890e5c4ab9b081de361e;p=thirdparty%2Ftvheadend.git mdhelp: add help button to status tabs --- diff --git a/docs/markdown/status_connections.md b/docs/markdown/status_connections.md index 4a9985add..1582c7faa 100644 --- a/docs/markdown/status_connections.md +++ b/docs/markdown/status_connections.md @@ -16,8 +16,6 @@ Button | Function -----------|--------- **Help** | Display this help page. -##Note: FIXME: Need to add a help button! - --- ####Grid Items diff --git a/docs/markdown/status_service_mapper.md b/docs/markdown/status_service_mapper.md index 3516e659a..75689a589 100644 --- a/docs/markdown/status_service_mapper.md +++ b/docs/markdown/status_service_mapper.md @@ -16,8 +16,6 @@ Button | Function -----------|--------- **Help** | Display this help page. -##Note: FIXME: Need to add a help button! - --- ####Grid Items diff --git a/docs/markdown/status_stream.md b/docs/markdown/status_stream.md index f4bd11d2b..7ac275c59 100644 --- a/docs/markdown/status_stream.md +++ b/docs/markdown/status_stream.md @@ -16,8 +16,6 @@ Button | Function -----------|--------- **Help** | Display this help page. -##Note: FIXME: Need to add a help button! - --- ####Grid Items diff --git a/docs/markdown/status_subscriptions.md b/docs/markdown/status_subscriptions.md index 2fe7a571b..17d323d6c 100644 --- a/docs/markdown/status_subscriptions.md +++ b/docs/markdown/status_subscriptions.md @@ -16,8 +16,6 @@ Button | Function -----------|--------- **Help** | Display this help page. -##Note: FIXME: Need to add a help button! - --- ####Grid Items diff --git a/src/webui/static/app/servicemapper.js b/src/webui/static/app/servicemapper.js index 042ece76f..b56df8b59 100644 --- a/src/webui/static/app/servicemapper.js +++ b/src/webui/static/app/servicemapper.js @@ -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); } /* diff --git a/src/webui/static/app/status.js b/src/webui/static/app/status.js index 40d4b5d48..2c3d02c2b 100644 --- a/src/webui/static/app/status.js +++ b/src/webui/static/app/status.js @@ -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,