luci-base: support hiding the "Back to Overview" button in cbi maps
[project/luci.git] / modules / luci-base / luasrc / view / cbi / footer.htm
index 115250a..e6acfb0 100644 (file)
@@ -1,6 +1,6 @@
        <%- if pageaction then -%>
        <div class="cbi-page-actions">
-               <% if redirect then %>
+               <% if redirect and not flow.hidebackbtn then %>
                <div style="float:left">
                        <input class="cbi-button cbi-button-link" type="button" value="<%:Back to Overview%>" onclick="location.href='<%=pcdata(redirect)%>'" />
                </div>
                <% if not flow.hideresetbtn then %>
                        <input class="cbi-button cbi-button-reset" type="button" value="<%:Reset%>" onclick="location.href='<%=REQUEST_URI%>'" />
                <% end %>
-
-               <script type="text/javascript">cbi_d_update();</script>
        </div>
        <%- end -%>
 </form>
+
+<script type="text/javascript">cbi_init();</script>
+
 <%+footer%>