luci-0.9: merge r5115
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 6 Mar 2010 19:15:16 +0000 (19:15 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 6 Mar 2010 19:15:16 +0000 (19:15 +0000)
libs/cbi/luasrc/view/cbi/tblsection.htm

index 029ad661ccd632b5bc309dd12591fae8978bc62d..0d0d79119466bdf25dee5a09e5916df2ed379644 100644 (file)
@@ -69,7 +69,7 @@ end
                        -%>
                        <tr class="cbi-section-table-row<% if self.extedit or self.rowcolors then %> cbi-rowstyle-<%=rowstyle()%><% end %>" id="cbi-<%=self.config%>-<%=section%>">
                                <% if not self.anonymous then -%>
-                                       <th><h3><%=k%></h3></th>
+                                       <th><h3><%=(type(self.sectiontitle) == "function") and self:sectiontitle(section) or k%></h3></th>
                                <%- end %>