Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-06-01 16:31:44 +0300
committerJo-Philipp Wich <jo@mein.io>2021-06-01 16:34:11 +0300
commit96ee6dc8d6c9796ab67de6f313a068a4bd3bb20f (patch)
treeb767aa26b7281bac05d6772d6ab6f483d4251289 /protocols/luci-proto-ppp/htdocs/luci-static/resources
parent10f02472c5fdab72615a7d3695e8f354811cd661 (diff)
protocols: rename "device" option to "_modem_device"
This is required to resolve clashes with the generic "option device" referring to netdev names in current netifd versions. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'protocols/luci-proto-ppp/htdocs/luci-static/resources')
-rw-r--r--protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/ppp.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/ppp.js b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/ppp.js
index 6df468f9e3..49ac8c4f89 100644
--- a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/ppp.js
+++ b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/ppp.js
@@ -70,7 +70,8 @@ return network.registerProtocol('ppp', {
renderFormOptions: function(s) {
var dev = this.getL3Device() || this.getDevice(), o;
- o = s.taboption('general', form.Value, 'device', _('Modem device'));
+ o = s.taboption('general', form.Value, '_modem_device', _('Modem device'));
+ o.ucioption = 'device';
o.rmempty = false;
o.load = function(section_id) {
return callFileList('/dev/').then(L.bind(function(devices) {