themes: render menu even when not logged in
Ref: #3563 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
9939fc5a26
commit
0130e2b08c
3 changed files with 3 additions and 3 deletions
|
@ -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 = '';
|
||||||
|
|
||||||
|
|
|
@ -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 = '';
|
||||||
|
|
||||||
|
|
|
@ -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 = '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue