From: Jo-Philipp Wich Date: Fri, 20 Jul 2018 09:35:09 +0000 (+0200) Subject: luci-base: fix bad CSS class names in table section template X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3c90289e0f08bf0902f54740ae76f9d4bcceb950;p=project%2Fluci.git 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 --- diff --git a/modules/luci-base/luasrc/view/cbi/tblsection.htm b/modules/luci-base/luasrc/view/cbi/tblsection.htm index 9505f4ac4e..408dfa7fe8 100644 --- a/modules/luci-base/luasrc/view/cbi/tblsection.htm +++ b/modules/luci-base/luasrc/view/cbi/tblsection.htm @@ -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