Skip to content

Commit

Permalink
luci-app-lldpd: Update filter matrix
Browse files Browse the repository at this point in the history
The old filter matrix was based on the man pages, but the selected value in the range 1-20 was also assigned to the configuration and thus lldpd was configured incorrectly. lldpd expects a value in the range 0-19. The webapp matrix has now been changed so that the values 0-19 also appear there.
This leads to a unification of configuration and webapp.

Signed-off-by: Marek Küthe <m.k@mk16.de>
  • Loading branch information
marek22k committed Jul 30, 2023
1 parent 3cadcb9 commit 1f93194
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,20 @@ var cbiFilterSelect = form.Value.extend({
tbody.push(E('tr', {
'class': ((selected == i) ? 'lldpd-filter-selected' : ''),
'click': L.bind(this.handleRowClick, this, section_id),
'data-filter': i + 1,
'data-filter': i,
}, [
E('td', {}, [
E('input', {
'class': 'cbi-input-radio',
'data-update': 'click change',
'type': 'radio',
'id': this.cbid(section_id) + '-' + (i + 1),
'id': this.cbid(section_id) + '-' + i,
'name': this.cbid(section_id),
'checked': (selected == i) ? '' : null,
'value': i + 1
'value': i
})
]),
E('td', {}, i + 1),
E('td', {}, i),
E('td', {}, renderFilterVal(i, 0)),
E('td', {}, renderFilterVal(i, 1)),
E('td', {}, renderFilterVal(i, 2)),
Expand Down

0 comments on commit 1f93194

Please sign in to comment.