luci-mod-network: dhcp: separate actual value and display string
saved value will now be only an integer. Signed-off-by: Paul Donald <newtwen@gmail.com>
This commit is contained in:
parent
2841d28396
commit
5b955f1ae9
1 changed files with 4 additions and 2 deletions
|
@ -800,7 +800,8 @@ return view.extend({
|
||||||
so.optional = true;
|
so.optional = true;
|
||||||
|
|
||||||
Object.values(L.uci.sections('dhcp', 'dnsmasq')).forEach(function(val, index) {
|
Object.values(L.uci.sections('dhcp', 'dnsmasq')).forEach(function(val, index) {
|
||||||
so.value(generateDnsmasqInstanceEntry(val));
|
var name, display_str = generateDnsmasqInstanceEntry(val);
|
||||||
|
so.value(index, display_str);
|
||||||
});
|
});
|
||||||
|
|
||||||
o = s.taboption('srvhosts', form.SectionValue, '__srvhosts__', form.TableSection, 'srvhost', null,
|
o = s.taboption('srvhosts', form.SectionValue, '__srvhosts__', form.TableSection, 'srvhost', null,
|
||||||
|
@ -1078,7 +1079,8 @@ return view.extend({
|
||||||
so.optional = true;
|
so.optional = true;
|
||||||
|
|
||||||
Object.values(L.uci.sections('dhcp', 'dnsmasq')).forEach(function(val, index) {
|
Object.values(L.uci.sections('dhcp', 'dnsmasq')).forEach(function(val, index) {
|
||||||
so.value(generateDnsmasqInstanceEntry(val));
|
var name, display_str = generateDnsmasqInstanceEntry(val);
|
||||||
|
so.value(index, display_str);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue