luci-base: cbi: also initialize JS if pageactions are disabled
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Feb 2016 16:39:54 +0000 (17:39 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Feb 2016 16:40:01 +0000 (17:40 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
modules/luci-base/luasrc/view/cbi/footer.htm

index 42bf98bf275834f253b5ec1a99acd45eeccb1ff4..4d332fd07a36bd27fced6dcd76475f90a96c2447 100644 (file)
                <% 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_init();</script>
        </div>
        <%- end -%>
 </form>
+
+<script type="text/javascript">cbi_init();</script>
+
 <%+footer%>