Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mdhelp: add help button to status tabs
  • Loading branch information
perexg committed Apr 19, 2016
1 parent 0a9c918 commit a046135
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 9 deletions.
2 changes: 0 additions & 2 deletions docs/markdown/status_connections.md
Expand Up @@ -16,8 +16,6 @@ Button | Function
-----------|---------
**Help** | Display this help page.

##Note: FIXME: Need to add a help button!

---

####Grid Items
Expand Down
2 changes: 0 additions & 2 deletions docs/markdown/status_service_mapper.md
Expand Up @@ -16,8 +16,6 @@ Button | Function
-----------|---------
**Help** | Display this help page.

##Note: FIXME: Need to add a help button!

---

####Grid Items
Expand Down
2 changes: 0 additions & 2 deletions docs/markdown/status_stream.md
Expand Up @@ -16,8 +16,6 @@ Button | Function
-----------|---------
**Help** | Display this help page.

##Note: FIXME: Need to add a help button!

---

####Grid Items
Expand Down
2 changes: 0 additions & 2 deletions docs/markdown/status_subscriptions.md
Expand Up @@ -16,8 +16,6 @@ Button | Function
-----------|---------
**Help** | Display this help page.

##Note: FIXME: Need to add a help button!

---

####Grid Items
Expand Down
17 changes: 16 additions & 1 deletion src/webui/static/app/servicemapper.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

/*
Expand Down
21 changes: 21 additions & 0 deletions src/webui/static/app/status.js
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a046135

Please sign in to comment.