Move user scripts gui config to admin, cleanup

This commit is contained in:
emanuele-f 2020-01-03 15:16:46 +01:00
parent d037f9a9a4
commit ad9c386bb3
44 changed files with 241 additions and 289 deletions

View file

@ -67,11 +67,7 @@ for script_name, script in pairs(scripts.modules) do
edit_url = ntop.getHttpPrefix() .. '/lua/code_viewer.lua?lua_script_path='.. path
end
local input_handler = nil
if(script.gui.input_builder == user_scripts.threshold_cross_input_builder) then -- TODO make generic
input_handler = "threshold_cross"
end
local input_handler = script.gui.input_builder
result[#result + 1] = {
key = script_name,