parent
1888157796
commit
285a913aad
@ -131,7 +131,7 @@ o:value("ipv6_only", translate("IPv6 Only"))
|
||||
o = s:option(Button, "_stop", translate("Delete All Subscribe Node"))
|
||||
o.inputstyle = "remove"
|
||||
function o.write(e, e)
|
||||
luci.sys.call("lua /usr/share/" .. appname .. "/subscribe.lua truncate all-node > /dev/null 2>&1")
|
||||
luci.sys.call("lua /usr/share/" .. appname .. "/subscribe.lua truncate > /dev/null 2>&1")
|
||||
m.no_commit = true
|
||||
end
|
||||
|
||||
|
@ -1318,13 +1318,11 @@ local function truncate_nodes(add_from)
|
||||
end
|
||||
end
|
||||
end)
|
||||
if add_from then
|
||||
uci:foreach(appname, "subscribe_list", function(o)
|
||||
if add_from == "all-node" or add_from == o.remark then
|
||||
if (not add_from) or add_from == o.remark then
|
||||
uci:delete(appname, o['.name'], "md5")
|
||||
end
|
||||
end)
|
||||
end
|
||||
api.uci_save(uci, appname, true)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user