libs/web: assign extra css class to typed or named sections with tabs
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 30 Sep 2011 14:14:04 +0000 (14:14 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 30 Sep 2011 14:14:04 +0000 (14:14 +0000)
libs/web/luasrc/view/cbi/nsection.htm
libs/web/luasrc/view/cbi/tsection.htm

index e34e0f3..95e7658 100644 (file)
@@ -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 />
index 2aab1b5..24f8e04 100644 (file)
@@ -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 />