diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-10 22:18:50 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-10 22:18:50 +0000 |
commit | 42e1f743b394c95637b99feac7a93161c5215381 (patch) | |
tree | a02ea69d5e8234d64e0ca7d4f4b5df50492b7488 /libs/cbi/luasrc | |
parent | b47afa09346e39d0ff66a03b3f66ad2888b4d5d8 (diff) |
libs/cbi: fix dynamic tab hiding
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/tabmenu.htm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/view/cbi/tabmenu.htm b/libs/cbi/luasrc/view/cbi/tabmenu.htm index 5cd5c76aaf..7648fe011b 100644 --- a/libs/cbi/luasrc/view/cbi/tabmenu.htm +++ b/libs/cbi/luasrc/view/cbi/tabmenu.htm @@ -16,6 +16,7 @@ $Id$ <ul class="cbi-tabmenu"> <%- self.selected_tab = luci.http.formvalue("tab." .. self.config .. "." .. section) %> <%- for _, tab in ipairs(self.tab_names) do if #self.tabs[tab].childs > 0 then %> + <script type="text/javascript">cbi_c['container.<%=self.config%>.<%=section%>.<%=tab%>'] = <%=#self.tabs[tab].childs%>;</script> <%- if not self.selected_tab then self.selected_tab = tab end %> <li id="tab.<%=self.config%>.<%=section%>.<%=tab%>" class="cbi-tab<%=(tab == self.selected_tab) and '' or '-disabled'%>"> <a onclick="this.blur(); return cbi_t_switch('<%=self.config%>.<%=section%>', '<%=tab%>')" href="<%=REQUEST_URI%>?tab.<%=self.config%>.<%=section%>=<%=tab%>"><%=self.tabs[tab].title%></a> |