diff options
Diffstat (limited to 'modules/luci-base/luasrc/view/view.htm')
-rw-r--r-- | modules/luci-base/luasrc/view/view.htm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/luci-base/luasrc/view/view.htm b/modules/luci-base/luasrc/view/view.htm index 9220ecf299..b451e8cfbf 100644 --- a/modules/luci-base/luasrc/view/view.htm +++ b/modules/luci-base/luasrc/view/view.htm @@ -2,10 +2,11 @@ <div id="view"> <div class="spinning"><%:Loading view…%></div> - <script type="text/javascript">L.require('view.<%=view%>').catch(function(err) { - L.dom.content(document.querySelector('#view'), null); - L.error(err); - });</script> + <script type="text/javascript"> + L.require('ui').then(function(ui) { + ui.instantiateView('<%=view%>'); + }); + </script> </div> <%+footer%> |