Changeset 26114


Ignore:
Timestamp:
Dec 23, 2013, 12:18:58 PM (7 years ago)
Author:
mistic100
Message:

[elegant] changing configuration while the menu is hidden generates content overlap

Location:
trunk/themes/elegant
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/elegant/scripts.js

    r26087 r26114  
    66      content=jQuery("#the_page > .content"),
    77      pcontent=jQuery("#content");
    8 
    9   if (session_storage['page-menu'] == 'hidden') {
    10     jQuery("head").append('<style>#the_page #menubar {display:none;} #content.contentWithMenu, #the_page > .content {margin-left:35px;}</style>');
    11   }
    12   else {
    13     jQuery("head").append('<style>#content.contentWithMenu, #the_page > .content {margin-left:240px;}</style>');
    14   }
    158
    169  function hideMenu(delay) {
  • trunk/themes/elegant/scripts_pp.js

    r26087 r26114  
    1414      comments_add,
    1515      comments_top_offset = 0;
    16 
    17   if (session_storage['picture-menu'] == 'visible') {
    18     jQuery("head").append('<style>#content.contentWithMenu, #the_page > .content {margin-left:240px;}</style>');
    19   }
    20   else {
    21     jQuery("head").append('<style>#the_page #menubar {display:none;} #content.contentWithMenu, #the_page > .content {margin-left:35px;}</style>');
    22   }
    2316
    2417  function hideMenu(delay) {
     
    9487        e.preventDefault();
    9588      });
     89    }
     90    else if (menubar.length == 1 && p_main_menu=="disabled") {
     91      showMenu(0);
    9692    }
    9793
Note: See TracChangeset for help on using the changeset viewer.