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 e34e0f383e338092704da0327d6c042e73ce3ee7..95e765882233c5c1a59cd30f14454288cf2036cb 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 2aab1b56f0697b35115d6e868e310466943358bd..24f8e0400f8235677666f93c683076c9257dc885 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 />