Ignore:
Timestamp:
Mar 19, 2015, 7:31:56 AM (9 years ago)
Author:
SergeD
Message:

version 1.2.22 - see changelog for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/greydragon/js/theme.menu.js

    r30783 r31043  
    66      pcontent=jQuery("#content");
    77
    8   // static, opened, closed, disabled
     8  // static, opened, closed, disabled, force_hide
    99
    1010  function hideMenu(delay) {
     
    5252
    5353    if (menubar.length == 1 && p_main_menu != "disabled" && p_main_menu != 'header-bottom') {
    54       if (jQuery.cookie('side-menu') == undefined) {
    55         if (p_main_menu == 'opened') {
    56           jQuery.cookie('side-menu', 'visible', {path: "/"});
    57         }else{
    58           jQuery.cookie('side-menu', 'hidden', {path: "/"});
     54      if (p_main_menu == "force_hide") {
     55        jQuery.cookie('side-menu', 'hidden', {path: "/"});
     56      }else{
     57        if (jQuery.cookie('side-menu') == undefined) {
     58          if (p_main_menu == 'opened') {
     59            jQuery.cookie('side-menu', 'visible', {path: "/"});
     60          }else{
     61            jQuery.cookie('side-menu', 'hidden', {path: "/"});
     62          }
    5963        }
    6064      }
Note: See TracChangeset for help on using the changeset viewer.