mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Unsaved preferences alert and save button show logic
This commit is contained in:
parent
5c0e312782
commit
dd1d943359
5 changed files with 235 additions and 20 deletions
|
|
@ -32,7 +32,7 @@ function inline_input_form(name, placeholder, tooltip, value, can_edit, input_op
|
|||
if(can_edit) then
|
||||
print('<input title="'..tooltip..'" '..(input_opts or "")..' class="form-control '..(input_clss or "")..'" name="'..name..'" placeholder="'..placeholder..'" value="')
|
||||
if(value ~= nil) then print(value) end
|
||||
print[["></input> <button type="submit" style="position: absolute; margin-top: 0; height: 26px" class="btn btn-default btn-xs">Save</button>\n]]
|
||||
print[["></input> <button type="submit" style="position: absolute; margin-top: 0; height: 26px" class="btn btn-default btn-xs">Save</button>]]
|
||||
else
|
||||
if(value ~= nil) then print(value) end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue