summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-09-30 14:14:04 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-09-30 14:14:04 +0000
commit43df5042781a5b5fa7e839ad2b09b2b1232a56db (patch)
treee03d8a9f5c79f3038dbf083396c6330d0484df75 /libs
parent7906112adf2bd79b17bbf9f9c545641e542464b2 (diff)
libs/web: assign extra css class to typed or named sections with tabs
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/view/cbi/nsection.htm2
-rw-r--r--libs/web/luasrc/view/cbi/tsection.htm2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/web/luasrc/view/cbi/nsection.htm b/libs/web/luasrc/view/cbi/nsection.htm
index e34e0f383..95e765882 100644
--- a/libs/web/luasrc/view/cbi/nsection.htm
+++ b/libs/web/luasrc/view/cbi/nsection.htm
@@ -12,7 +12,7 @@
</div>
<%- end %>
<%+cbi/tabmenu%>
- <div class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
+ <div class="cbi-section-node<% if self.tabs then %> cbi-section-node-tabbed<% end %>" id="cbi-<%=self.config%>-<%=section%>">
<%+cbi/ucisection%>
</div>
<br />
diff --git a/libs/web/luasrc/view/cbi/tsection.htm b/libs/web/luasrc/view/cbi/tsection.htm
index 2aab1b56f..24f8e0400 100644
--- a/libs/web/luasrc/view/cbi/tsection.htm
+++ b/libs/web/luasrc/view/cbi/tsection.htm
@@ -18,7 +18,7 @@
<%+cbi/tabmenu%>
- <fieldset class="cbi-section-node" id="cbi-<%=self.config%>-<%=section%>">
+ <fieldset class="cbi-section-node<% if self.tabs then %> cbi-section-node-tabbed<% end %>" id="cbi-<%=self.config%>-<%=section%>">
<%+cbi/ucisection%>
</fieldset>
<br />