From: Jaroslav Kysela Date: Wed, 27 May 2015 19:40:58 +0000 (+0200) Subject: webui: don't show trace options when compiled without traces in Debugging panel X-Git-Tag: v4.2.1~2437 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a0ebe8c17ec479b1c2854d1fed6e66ceb78ad2;p=thirdparty%2Ftvheadend.git webui: don't show trace options when compiled without traces in Debugging panel --- diff --git a/src/webui/static/app/tvhlog.js b/src/webui/static/app/tvhlog.js index ba3f0b567..6e680be6f 100644 --- a/src/webui/static/app/tvhlog.js +++ b/src/webui/static/app/tvhlog.js @@ -61,14 +61,22 @@ tvheadend.tvhlog = function(panel, index) { } }); + items = new Array(); + items.push(tvhlogLogPath); + items.push(tvhlogToSyslog); + if (tvheadend.accessUpdate.trace) + items.push(tvhlogTraceOn); + items.push(tvhlogDebugSubsys); + if (tvheadend.accessUpdate.trace) + items.push(tvhlogTraceSubsys); + var DebuggingPanel = new Ext.form.FieldSet({ title: 'Debugging Options', width: 700, autoHeight: true, collapsible: true, animCollapse : true, - items: [tvhlogLogPath, tvhlogToSyslog, - tvhlogTraceOn, tvhlogDebugSubsys, tvhlogTraceSubsys] + items: items }); var confpanel = new Ext.form.FormPanel({