luci-base: properly initialize cbi.js on SimpleForms
authorJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 14:39:39 +0000 (16:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 6 Apr 2018 14:39:39 +0000 (16:39 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/view/cbi/simpleform.htm

index 78f5c5a544b440c39b05eae7a452d77bd797aaea..3b758d70ee487997814d9e6d4f1288a50fe32d4c 100644 (file)
@@ -52,7 +52,8 @@
                <%- if not self.cancel then -%><%-:Cancel-%><%-else-%><%=self.cancel%><%end-%>
        " />
 <% end %>
-               <script type="text/javascript">cbi_d_update();</script>
        </div>
 </form>
 <% end %>
+
+<script type="text/javascript">cbi_init();</script>