summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-ncm/htdocs/luci-static/resources
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/luci-proto-ncm/htdocs/luci-static/resources')
-rw-r--r--protocols/luci-proto-ncm/htdocs/luci-static/resources/protocol/ncm.js21
1 files changed, 4 insertions, 17 deletions
diff --git a/protocols/luci-proto-ncm/htdocs/luci-static/resources/protocol/ncm.js b/protocols/luci-proto-ncm/htdocs/luci-static/resources/protocol/ncm.js
index 3ab6c01d61..13dee21b15 100644
--- a/protocols/luci-proto-ncm/htdocs/luci-static/resources/protocol/ncm.js
+++ b/protocols/luci-proto-ncm/htdocs/luci-static/resources/protocol/ncm.js
@@ -58,7 +58,8 @@ return network.registerProtocol('ncm', {
renderFormOptions: function(s) {
var 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) {
@@ -94,7 +95,8 @@ return network.registerProtocol('ncm', {
o.placeholder = '*99***1#';
if (L.hasSystemFeature('ipv6')) {
- o = s.taboption('advanced', form.ListValue, 'ipv6', _('Obtain IPv6-Address'));
+ o = s.taboption('advanced', form.ListValue, 'ppp_ipv6', _('Obtain IPv6-Address'));
+ o.ucioption = 'ipv6';
o.value('auto', _('Automatic'));
o.value('0', _('Disabled'));
o.value('1', _('Manual'));
@@ -104,20 +106,5 @@ return network.registerProtocol('ncm', {
o = s.taboption('advanced', form.Value, 'delay', _('Modem init timeout'), _('Maximum amount of seconds to wait for the modem to become ready'));
o.placeholder = '10';
o.datatype = 'min(1)';
-
- o = s.taboption('advanced', form.Flag, 'defaultroute', _('Default gateway'), _('If unchecked, no default route is configured'));
- o.default = o.enabled;
-
- o = s.taboption('advanced', form.Value, 'metric', _('Use gateway metric'));
- o.placeholder = '0';
- o.datatype = 'uinteger';
- o.depends('defaultroute', '1');
-
- o = s.taboption('advanced', form.Flag, 'peerdns', _('Use DNS servers advertised by peer'), _('If unchecked, the advertised DNS server addresses are ignored'));
- o.default = o.enabled;
-
- o = s.taboption('advanced', form.DynamicList, 'dns', _('Use custom DNS servers'));
- o.depends('peerdns', '0');
- o.datatype = 'ipaddr';
}
});