mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 13:26:20 +04:00
luci-base: fix bad CSS class names in table section template
The previous refactoring of the template caused the row stripying CSS classes to be interpolated in such a way, that a separating space to previous CSS classes was missing, leading to not rendered row names and other side effects. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -4,9 +4,9 @@ local rowcnt = 0
|
||||
function rowstyle()
|
||||
rowcnt = rowcnt + 1
|
||||
if rowcnt % 2 == 0 then
|
||||
return "cbi-rowstyle-1"
|
||||
return " cbi-rowstyle-1"
|
||||
else
|
||||
return "cbi-rowstyle-2"
|
||||
return " cbi-rowstyle-2"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user