diff options
author | Dirk Brenken <dev@brenken.org> | 2017-07-24 15:30:01 +0200 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2017-07-24 16:02:21 +0200 |
commit | 31f77a3cfe3ff04d7c20d7ba6d2daacdcc9fbc5d (patch) | |
tree | 810f33a6dc137b6f18150b033110173a722765d4 /applications/luci-app-travelmate/luasrc/model/cbi | |
parent | e900b892e871fcd0939df883e9586febe665c252 (diff) |
luci-app-travelmate: small bugfixes
* speed up wireless scan
* emphasize active uplink in Station Overview
* mark hidden SSIDs
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-travelmate/luasrc/model/cbi')
-rw-r--r-- | applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua index 361027f727..979307e001 100644 --- a/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua +++ b/applications/luci-app-travelmate/luasrc/model/cbi/travelmate/wifi_add.lua @@ -22,8 +22,12 @@ m.hidden = { wpa_version = http.formvalue("wpa_version") } -wssid = m:field(Value, "ssid", translate("SSID")) -wssid.default = m.hidden.ssid +if m.hidden.ssid ~= "" then + wssid = m:field(Value, "ssid", translate("SSID")) + wssid.default = m.hidden.ssid +else + wssid = m:field(Value, "ssid", translate("SSID (hidden)")) +end if (tonumber(m.hidden.wep) or 0) == 1 then wkey = m:field(Value, "key", translate("WEP passphrase"), |