mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
commented debug code for pres_utils.lua
This commit is contained in:
parent
3db7c2f6e5
commit
615a5e1c7b
1 changed files with 4 additions and 3 deletions
|
|
@ -600,9 +600,10 @@ function prefsToggleButton(subpage_active, params)
|
|||
local options = table.merge(defaults, params)
|
||||
local redis_key = get_pref_redis_key(options)
|
||||
|
||||
if (subpage_active.entries[options.field] ~= nil) then
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "Missing entry '" .. options.field .. "' inside entries field")
|
||||
end
|
||||
-- used for debugging purpose:
|
||||
-- if (subpage_active.entries[options.field] ~= nil) then
|
||||
-- traceError(TRACE_ERROR, TRACE_CONSOLE, "Missing entry '" .. options.field .. "' inside entries field")
|
||||
-- end
|
||||
|
||||
return toggleTableButtonPrefs(params.title or subpage_active.entries[options.field].title,
|
||||
(params.description or subpage_active.entries[options.field].description) .. (params.content or subpage_active.entries[options.field].content or ""),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue