mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
luci-app-lldpd: correctness fixes
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -184,7 +184,7 @@ const CBIMultiIOSelect = form.MultiValue.extend({
|
||||
|
||||
renderWidget(section_id, option_index, cfgvalue) {
|
||||
const value = (cfgvalue != null) ? cfgvalue : this.default ? this.default : '';
|
||||
const choices = this.transformChoices() ? this.transformChoices() : '';
|
||||
const choices = this.transformChoices() || '';
|
||||
|
||||
const widget = new ui.Dropdown(L.toArray(value), choices, {
|
||||
id: this.cbid(section_id),
|
||||
|
||||
@@ -156,10 +156,9 @@ return L.view.extend({
|
||||
|
||||
/** @private */
|
||||
renderNumber(v) {
|
||||
if (parseInt(v))
|
||||
return v;
|
||||
|
||||
if (v === undefined || v === null)
|
||||
return '–';
|
||||
return parseInt(v);
|
||||
},
|
||||
|
||||
/** @private */
|
||||
|
||||
Reference in New Issue
Block a user