mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-08 06:14:54 +02:00
[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
This commit is contained in:
@@ -6,13 +6,6 @@
|
||||
content=jQuery("#the_page > .content"),
|
||||
pcontent=jQuery("#content");
|
||||
|
||||
if (session_storage['page-menu'] == 'hidden') {
|
||||
jQuery("head").append('<style>#the_page #menubar {display:none;} #content.contentWithMenu, #the_page > .content {margin-left:35px;}</style>');
|
||||
}
|
||||
else {
|
||||
jQuery("head").append('<style>#content.contentWithMenu, #the_page > .content {margin-left:240px;}</style>');
|
||||
}
|
||||
|
||||
function hideMenu(delay) {
|
||||
menubar.hide(delay);
|
||||
menuswitcher.addClass("menuhidden").removeClass("menushown");
|
||||
|
||||
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user