Explorar el Código

Merge pull request #1630 from zxlhhyccc/patch-1

luci-app-ssr-plus: servers.lua: Fix when auto update is canceled opton is empty error.
coolsnowwolf hace 10 meses
padre
commit
ef422560f7
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/servers.lua

+ 3 - 3
luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/servers.lua

@@ -29,7 +29,7 @@ o:value("5", translate("Every Friday"))
 o:value("6", translate("Every Saturday"))
 o:value("0", translate("Every Sunday"))
 o.default = "*"
-o.rmempty = false
+o.rmempty = true
 o:depends("auto_update", "1")
 
 o = s:option(ListValue, "auto_update_day_time", translate("Update time (every day)"))
@@ -37,7 +37,7 @@ for t = 0, 23 do
 	o:value(t, t .. ":00")
 end
 o.default = 2
-o.rmempty = false
+o.rmempty = true
 o:depends("auto_update", "1")
 
 o = s:option(ListValue, "auto_update_min_time", translate("Update Interval (min)"))
@@ -45,7 +45,7 @@ for i = 0, 59 do
     o:value(i, i .. ":00")
 end
 o.default = 30
-o.rmempty = false
+o.rmempty = true
 o:depends("auto_update", "1")
 
 o = s:option(DynamicList, "subscribe_url", translate("Subscribe URL"))