mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fix normal user add error
This commit is contained in:
parent
2a843966da
commit
58b6ba8976
1 changed files with 8 additions and 3 deletions
|
|
@ -174,7 +174,6 @@ else -- a captive portal user is being added
|
|||
]]
|
||||
-- require("prefs_utils")
|
||||
local res = prefsResolutionButtons("hd", 3600)
|
||||
tprint(res)
|
||||
print[[
|
||||
</td>
|
||||
<td style="padding-left: 2em;">
|
||||
|
|
@ -297,9 +296,15 @@ print[[
|
|||
if (!data.valid) {
|
||||
add_user_alert.error(data.msg);
|
||||
} else {
|
||||
/* convert expire resolution into appropriate value */
|
||||
resol_selector_finalize(frmadduser);
|
||||
]]
|
||||
|
||||
if captive_portal_user == true then
|
||||
print[[
|
||||
/* Converts expire resolution into appropriate value */
|
||||
resol_selector_finalize(frmadduser);]]
|
||||
end
|
||||
|
||||
print[[
|
||||
$.ajax({
|
||||
type: frmadduser.attr('method'),
|
||||
url: frmadduser.attr('action'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue