aboutsummaryrefslogtreecommitdiffstats
path: root/themes/elegant/scripts.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/elegant/scripts.js')
-rw-r--r--themes/elegant/scripts.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/elegant/scripts.js b/themes/elegant/scripts.js
index 172d6d8e3..6f7629d79 100644
--- a/themes/elegant/scripts.js
+++ b/themes/elegant/scripts.js
@@ -33,7 +33,11 @@
if (menubar.length == 1 && p_main_menu!="disabled") {
menuswitcher.html('<div class="switchArrow">&nbsp;</div>');
- if (session_storage['page-menu'] == 'hidden' || p_main_menu == 'off') {
+ if (session_storage['page-menu'] == undefined && p_main_menu == 'off') {
+ session_storage['page-menu'] = 'hidden';
+ }
+
+ if (session_storage['page-menu'] == 'hidden') {
hideMenu(0);
}
else {