summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-06 19:10:30 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-06 19:10:30 +0000
commitcb0718b9f7ca294d49dca050cc08e35134ceefa0 (patch)
tree3c5ee768c9d9978a123a4324b9cd00bcda628e3a
parentbf8a7d61cfbd899fbb679c37143d6301e7ed2881 (diff)
libs/cbi: implement .sectiontitle callback for tblsections to allow custom per-row titles
-rw-r--r--libs/cbi/luasrc/view/cbi/tblsection.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/view/cbi/tblsection.htm b/libs/cbi/luasrc/view/cbi/tblsection.htm
index 698efc53c..022461067 100644
--- a/libs/cbi/luasrc/view/cbi/tblsection.htm
+++ b/libs/cbi/luasrc/view/cbi/tblsection.htm
@@ -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 %>