mirror of
https://github.com/openwrt/luci
synced 2025-01-05 10:37:19 +08:00
luci-base: allow sort value to be reassigned
Commit 234e131507
changed the "val"
variable to be a constant, but it's value is reassigned later. Change
the variable to be declared with let instead so it can be reassigned.
Signed-off-by: Daniel Nilsson <dannil+github@protonmail.com>
This commit is contained in:
parent
891635090c
commit
f5c18061ed
@ -3075,7 +3075,7 @@ const CBITableSection = CBITypedSection.extend(/** @lends LuCI.form.TableSection
|
||||
ev.currentTarget.parentNode.querySelectorAll('tr.cbi-section-table-row').forEach(L.bind((tr, i) => {
|
||||
const sid = tr.getAttribute('data-sid');
|
||||
const opt = tr.childNodes[index].getAttribute('data-name');
|
||||
const val = this.cfgvalue(sid, opt);
|
||||
let val = this.cfgvalue(sid, opt);
|
||||
|
||||
tr.querySelectorAll('.flash').forEach((n) => {
|
||||
n.classList.remove('flash')
|
||||
|
Loading…
Reference in New Issue
Block a user