mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Adds lifetime selection button to CP users
This commit is contained in:
parent
40b258e43e
commit
844a34df92
3 changed files with 40 additions and 10 deletions
|
|
@ -25,7 +25,7 @@ end
|
|||
local options_script_loaded = false
|
||||
local options_ctr = 0
|
||||
|
||||
local function prefsResolutionButtons(fmt, value)
|
||||
function prefsResolutionButtons(fmt, value)
|
||||
local fmt_to_data = {
|
||||
["s"] = {label="Secs", value=1},
|
||||
["m"] = {label="Mins", value=60},
|
||||
|
|
@ -35,6 +35,7 @@ local function prefsResolutionButtons(fmt, value)
|
|||
|
||||
local ctrl_id = "options_group_" .. options_ctr
|
||||
options_ctr = options_ctr + 1
|
||||
|
||||
local res = makeResolutionButtons(fmt_to_data, ctrl_id, fmt, value, {classes={"pull-right"}})
|
||||
|
||||
print(res.html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue