mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Fix status page
This commit is contained in:
parent
05a638a3d9
commit
de81bec081
2 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ function wizard_add()
|
||||||
if delete_server ~= "" then
|
if delete_server ~= "" then
|
||||||
for serverdel, _ in pairs(delete_server) do
|
for serverdel, _ in pairs(delete_server) do
|
||||||
luci.sys.call("uci -q del openmptcprouter." .. serverdel)
|
luci.sys.call("uci -q del openmptcprouter." .. serverdel)
|
||||||
end
|
|
||||||
gostatus = false
|
gostatus = false
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- Add new interface
|
-- Add new interface
|
||||||
local add_interface = luci.http.formvalue("add_interface") or ""
|
local add_interface = luci.http.formvalue("add_interface") or ""
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
var status = document.getElementById('openmptcprouter_status');
|
var status = document.getElementById('openmptcprouter_status');
|
||||||
var temp = '<figure class="tree">';
|
var temp = '<figure class="tree">';
|
||||||
temp += '<ul>';
|
temp += '<ul>';
|
||||||
if (mArray.openmptcprouter)
|
if (mArray !== null && mArray.openmptcprouter)
|
||||||
{
|
{
|
||||||
temp += '<li class="remote-from-lease">';
|
temp += '<li class="remote-from-lease">';
|
||||||
temp += '<a href="#">';
|
temp += '<a href="#">';
|
||||||
|
|
Loading…
Reference in a new issue