luci-mod-status: use LuCI.ui.instantiateView() to load index view
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
d9e9cf92d1
commit
f9d61213fb
1 changed files with 5 additions and 4 deletions
|
@ -69,9 +69,10 @@ function renderBadge(icon, title) {
|
||||||
-%>
|
-%>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">L.require('view.status.index').catch(function(err) {
|
<script type="text/javascript">
|
||||||
dom.content(document.querySelector('#view'), null);
|
L.require('ui').then(function(ui) {
|
||||||
L.error(err);
|
ui.instantiateView('status/index');
|
||||||
});</script>
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<%+footer%>
|
<%+footer%>
|
||||||
|
|
Loading…
Reference in a new issue