memset(&config, 0, sizeof(config));
config.idnode.in_class = &config_class;
+ config.ui_quicktips = 1;
config.wizard = strdup("hello");
config.info_area = strdup("login,storage,time");
config.cookie_expires = 7;
.opts = PO_ADVANCED,
.group = 1
},
+ {
+ .type = PT_BOOL,
+ .id = "ui_quicktips",
+ .name = N_("User interface quick tips"),
+ .desc = N_("Allow to show the quick tips for the form fields."),
+ .off = offsetof(config_t, ui_quicktips),
+ .opts = PO_ADVANCED,
+ .group = 1
+ },
{
.type = PT_U32,
.id = "cookie_expires",
uint32_t version;
int uilevel;
int uilevel_nochange;
+ int ui_quicktips;
char *wizard;
char *full_version;
char *server_name;
if (config.uilevel_nochange)
htsmsg_add_u32(m, "uilevel_nochange", config.uilevel_nochange);
}
+ htsmsg_add_u32(m, "quicktips", config.ui_quicktips);
if (!access_noacl)
htsmsg_add_str(m, "username", username);
if (hc->hc_peer_ipstr)
value = f['default'];
function postfield(r, f) {
- if (f.description) {
+ if (f.description && tvheadend.quicktips) {
r.on('render', function(c) {
Ext.QuickTips.register({
target: c.getEl(),
tvheadend.dialog = null;
tvheadend.uilevel = 'expert';
tvheadend.uilevel_nochange = false;
+tvheadend.quicktips = true;
tvheadend.wizard = null;
tvheadend.cookieProvider = new Ext.state.CookieProvider({
if (o.uilevel)
tvheadend.uilevel = o.uilevel;
+
+ tvheadend.quicktips = o.quicktips;
if (o.uilevel_nochange)
tvheadend.uilevel_nochange = true;