mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
parent
1f028a1a96
commit
deff9d92e7
1 changed files with 12 additions and 0 deletions
|
|
@ -907,11 +907,23 @@ function printInMemory()
|
|||
|
||||
print('<thead class="thead-light"><tr><th colspan=2 class="info">'..i18n("prefs.local_hosts_cache_settings")..'</th></tr></thead>')
|
||||
|
||||
local javascriptAfterSwitch = "";
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." if($(\"#check-toggle_local_host_cache_enabled\").is(\":checked\")) {\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." if($(\"#check-toggle_active_local_host_cache_enabled\").is(\":checked\")) {\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." $(\"#active_local_host_cache_interval\").css(\"display\",\"table-row\");\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." } else {\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." $(\"#active_local_host_cache_interval\").css(\"display\",\"none\");\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." }\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." } else {\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." $(\"#active_local_host_cache_interval\").css(\"display\",\"none\");\n"
|
||||
javascriptAfterSwitch = javascriptAfterSwitch.." }\n"
|
||||
|
||||
prefsToggleButton(subpage_active, {
|
||||
field = "toggle_local_host_cache_enabled",
|
||||
default = "1",
|
||||
pref = "is_local_host_cache_enabled",
|
||||
to_switch = {"local_host_cache_duration","row_toggle_active_local_host_cache_enabled","active_local_host_cache_interval"},
|
||||
js_after_switch = javascriptAfterSwitch,
|
||||
})
|
||||
|
||||
local showLocalHostCacheInterval = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue