Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mdhelp: Add memoryinfo help doc plus various little fixes.
  • Loading branch information
Mark Clarkstone authored and perexg committed Apr 3, 2016
1 parent 8ed853b commit ec18791
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions docs/class/memoryinfo.md
@@ -0,0 +1,3 @@
This tab displays various memory usage information useful for debugging.

**It does not have any user configurable options.**
2 changes: 1 addition & 1 deletion src/access.c
Expand Up @@ -1437,7 +1437,7 @@ extern const char *tvh_doc_access_entry_class[];

const idclass_t access_entry_class = {
.ic_class = "access",
.ic_caption = N_("Access"),
.ic_caption = N_("Access Entries"),
.ic_event = "access",
.ic_perm_def = ACCESS_ADMIN,
.ic_doc = tvh_doc_access_entry_class,
Expand Down
3 changes: 3 additions & 0 deletions src/memoryinfo.c
Expand Up @@ -29,10 +29,13 @@ service_class_get_title ( idnode_t *self, const char *lang )
return ((memoryinfo_t *)self)->my_name;
}

extern const char *tvh_doc_memoryinfo_class[];

const idclass_t memoryinfo_class = {
.ic_class = "memoryinfo",
.ic_caption = N_("Memory information"),
.ic_event = "memoryinfo",
.ic_doc = tvh_doc_memoryinfo_class,
.ic_perm_def = ACCESS_ADMIN,
.ic_get_title = service_class_get_title,
.ic_properties = (const property_t[]){
Expand Down
6 changes: 3 additions & 3 deletions src/webui/static/app/tvhlog.js
Expand Up @@ -35,13 +35,13 @@ tvheadend.memoryinfo = function(panel, index)
{
tvheadend.idnode_grid(panel, {
url: 'api/memoryinfo',
titleS: _('Memory Info Entry'),
titleP: _('Memory Info Entries'),
titleS: _('Memory Information Entry'),
titleP: _('Memory Information Entries'),
iconCls: 'exclamation',
tabIndex: index,
readonly: true,
help: function() {
new tvheadend.help(_('Memory information entries'), 'config_memoryinfo.html');
new tvheadend.mdhelp('class/memoryinfo');
}
});
};

0 comments on commit ec18791

Please sign in to comment.