Hides a configuration field when not needed

This commit is contained in:
Simone Mainardi 2017-10-05 15:25:48 +02:00
parent 3bce6792be
commit b5d61a6d98

View file

@ -828,7 +828,9 @@ function printStatsTimeseries()
elementToSwitch, showElementArray, javascriptAfterSwitch, showElement)
prefsInputFieldPrefs(subpage_active.entries["rrd_files_retention"].title, subpage_active.entries["rrd_files_retention"].description,
"ntopng.prefs.", "rrd_files_retention", 30, "number", nil, nil, nil, {min=1, max=365, --[[ TODO check min/max ]]})
"ntopng.prefs.", "rrd_files_retention", 30, "number",
showElement,
nil, nil, {min=1, max=365, --[[ TODO check min/max ]]})
print('<tr><th colspan=2 class="info">'..i18n('prefs.other_timeseries')..'</th></tr>')