summaryrefslogtreecommitdiffhomepage
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rwxr-xr-xthemes/luci-theme-material/htdocs/luci-static/material/js/script.js5
-rwxr-xr-xthemes/luci-theme-material/luasrc/view/themes/material/header.htm2
2 files changed, 4 insertions, 3 deletions
diff --git a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
index fdd23e8cd2..a0f067595b 100755
--- a/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
+++ b/themes/luci-theme-material/htdocs/luci-static/material/js/script.js
@@ -144,10 +144,11 @@
function getCurrentNodeByUrl() {
var ret = false;
var getUrlNode = function (href){
- if (!$('body').hasClass('logged-in')){
+ var linkPos = href.indexOf(";");
+ if (linkPos == -1){
return "login";
}else{
- var linkPos = href.indexOf("/", linkPos);
+ linkPos = href.indexOf("/", linkPos);
if (linkPos == -1){
return "overview";
}else{
diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
index 153be101a5..99afc065b3 100755
--- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm
+++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm
@@ -135,7 +135,7 @@
<script src="<%=resource%>/xhr.js"></script>
</head>
-<body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %> <% if luci.dispatcher.context.authsession then %>logged-in<% end %>">
+<body class="lang_<%=luci.i18n.context.lang%> <%- if node then %><%= striptags( node.title ) %><%- end %>">
<header>
<div class="container">