themes: render menu even when not logged in

Ref: #3563
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-01-25 23:28:24 +01:00
parent 9939fc5a26
commit 0130e2b08c
3 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@
} }
document.addEventListener('luci-loaded', function(ev) { document.addEventListener('luci-loaded', function(ev) {
var tree = <%= luci.http.write_json(luci.dispatcher.context.authsession and luci.dispatcher.menu_json() or {}) %>, var tree = <%= luci.http.write_json(luci.dispatcher.menu_json() or {}) %>,
node = tree, node = tree,
url = ''; url = '';

View file

@ -165,7 +165,7 @@
} }
document.addEventListener('luci-loaded', function(ev) { document.addEventListener('luci-loaded', function(ev) {
var tree = <%= luci.http.write_json(luci.dispatcher.context.authsession and luci.dispatcher.menu_json() or {}) %>, var tree = <%= luci.http.write_json(luci.dispatcher.menu_json() or {}) %>,
node = tree, node = tree,
url = ''; url = '';

View file

@ -168,7 +168,7 @@
} }
document.addEventListener('luci-loaded', function(ev) { document.addEventListener('luci-loaded', function(ev) {
var tree = <%= luci.http.write_json(luci.dispatcher.context.authsession and luci.dispatcher.menu_json() or {}) %>, var tree = <%= luci.http.write_json(luci.dispatcher.menu_json() or {}) %>,
node = tree, node = tree,
url = ''; url = '';