projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3611f1
)
luci-base: cbi.js: properly handle falsy values in cbi_update_table()
author
Jo-Philipp Wich
<jo@mein.io>
Tue, 23 Nov 2021 18:11:34 +0000
(19:11 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Tue, 23 Nov 2021 18:12:41 +0000
(19:12 +0100)
Fixes: #5544
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit
e982c05671229b3d13622b38c9536812e8c5f05c
)
modules/luci-base/htdocs/luci-static/resources/cbi.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/cbi.js
b/modules/luci-base/htdocs/luci-static/resources/cbi.js
index b8446ec52ff4844a11147db8977efff645c99ff1..a21724c185e5ff2a4fa5c861015448b40553b796 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/cbi.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/cbi.js
@@
-766,7
+766,7
@@
function cbi_update_table(table, data, placeholder) {
var td = trow.appendChild(E('td', {
'class': titles[i].className,
'data-title': (text !== '') ? text : null
- },
row[i] ||
''));
+ },
(row[i] != null) ? row[i] :
''));
td.classList.remove('th');
td.classList.add('td');