aboutsummaryrefslogtreecommitdiffstats
path: root/themes/elegant/scripts_pp.js
diff options
context:
space:
mode:
Diffstat (limited to 'themes/elegant/scripts_pp.js')
-rw-r--r--themes/elegant/scripts_pp.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/themes/elegant/scripts_pp.js b/themes/elegant/scripts_pp.js
index 26d505ebf..c5185821f 100644
--- a/themes/elegant/scripts_pp.js
+++ b/themes/elegant/scripts_pp.js
@@ -14,13 +14,6 @@
comments_add,
comments_top_offset = 0;
- if (session_storage['picture-menu'] == 'visible') {
- jQuery("head").append('<style>#content.contentWithMenu, #the_page > .content {margin-left:240px;}</style>');
- }
- else {
- jQuery("head").append('<style>#the_page #menubar {display:none;} #content.contentWithMenu, #the_page > .content {margin-left:35px;}</style>');
- }
-
function hideMenu(delay) {
menubar.hide(delay);
menuswitcher.addClass("menuhidden").removeClass("menushown");
@@ -94,6 +87,9 @@
e.preventDefault();
});
}
+ else if (menubar.length == 1 && p_main_menu=="disabled") {
+ showMenu(0);
+ }
// info show/hide
if (imageInfos.length == 1 && p_pict_descr!="disabled") {