diff options
author | Remi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com> | 2020-08-15 17:22:56 +0300 |
---|---|---|
committer | Remi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com> | 2020-08-15 17:22:56 +0300 |
commit | 9282df68942d104f56d7e440293783413f0a7cf9 (patch) | |
tree | 9138fe5d4cfcded239a2e4097c9192df7085cbbb /protocols | |
parent | f2e9031b871c7c00695d66441595719385a0b144 (diff) |
protocols: rename type to maptype for map
"type" is already used as a common option for all protocols. This makes
the configuration ambiguous, and Luci sees JS errors when trying to save
a MAP configuration.
Switch to "maptype" instead to avoid the conflict. MAP currently uses
"maptype" and falls back to "type" when not specified.
Signed-off-by: Remi NGUYEN VAN <remi.nguyenvan+openwrt@gmail.com>
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js index 006ebfbf08..913d68b9b8 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/map.js @@ -40,7 +40,7 @@ return network.registerProtocol('map', { renderFormOptions: function(s) { var o; - o = s.taboption('general', form.ListValue, 'type', _('Type')); + o = s.taboption('general', form.ListValue, 'maptype', _('Type')); o.value('map-e', 'MAP-E'); o.value('map-t', 'MAP-T'); o.value('lw4o6', 'LW4over6'); |