diff --git a/luci-app-modem/luasrc/model/cbi/modem/config.lua b/luci-app-modem/luasrc/model/cbi/modem/config.lua index baccaa0..4a33c5d 100644 --- a/luci-app-modem/luasrc/model/cbi/modem/config.lua +++ b/luci-app-modem/luasrc/model/cbi/modem/config.lua @@ -66,11 +66,9 @@ getMobileNetwork() --------advanced-------- -- 配置ID -id = s:taboption("advanced", Value, "id", translate("Config ID")) -id.default = arg[1] +id = s:taboption("advanced", ListValue, "id", translate("Config ID")) id.rmempty = false -id.readonly = true -id.hidden = true +id:value(arg[1]) -- uci:set('modem',arg[1],'id',arg[1]) -- 拨号工具 diff --git a/luci-app-modem/po/zh-cn/modem.po b/luci-app-modem/po/zh-cn/modem.po index 036433f..7e89532 100644 --- a/luci-app-modem/po/zh-cn/modem.po +++ b/luci-app-modem/po/zh-cn/modem.po @@ -191,7 +191,7 @@ msgid "Only display the modes available for the adaptation modem" msgstr "仅显示适配模组可用的拨号模式" msgid "Config ID" -msgstr "配置ID" +msgstr "配置 ID" msgid "Dial Tool" msgstr "拨号工具"