From 9a02d285f8abf75c53cb67f128d8a88ae6f188bb Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 23 Dec 2013 11:18:58 +0000 Subject: [PATCH] [elegant] changing configuration while the menu is hidden generates content overlap git-svn-id: http://piwigo.org/svn/trunk@26114 68402e56-0260-453c-a942-63ccdbb3a9ee --- scripts.js | 7 ------- scripts_pp.js | 10 +++------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/scripts.js b/scripts.js index 6f7629d..1f94630 100644 --- a/scripts.js +++ b/scripts.js @@ -6,13 +6,6 @@ content=jQuery("#the_page > .content"), pcontent=jQuery("#content"); - if (session_storage['page-menu'] == 'hidden') { - jQuery("head").append(''); - } - else { - jQuery("head").append(''); - } - function hideMenu(delay) { menubar.hide(delay); menuswitcher.addClass("menuhidden").removeClass("menushown"); diff --git a/scripts_pp.js b/scripts_pp.js index 26d505e..c518582 100644 --- a/scripts_pp.js +++ b/scripts_pp.js @@ -14,13 +14,6 @@ comments_add, comments_top_offset = 0; - if (session_storage['picture-menu'] == 'visible') { - jQuery("head").append(''); - } - else { - jQuery("head").append(''); - } - 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") {