diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index d9d00c49c0..54680443ba 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -111,6 +111,23 @@ function ShowAboutBox() } EOF ); + + if (MetaModel::GetConfig()->Get('demo_mode')) + { + // Leave the pane opened + $sConfigureWestPane = ''; + } + else + { + $sConfigureWestPane = +<<m_sInitScript = <<< EOF @@ -163,13 +180,9 @@ EOF } }); window.clearTimeout(iPaneVisWatchDog); - myLayout.addPinBtn( "#tPinMenu", "west" ); //myLayout.open( "west" ); $('.ui-layout-resizer-west .ui-layout-toggler').css({background: 'transparent'}); - if (GetUserPreference('menu_pane', 'open') == 'closed') - { - myLayout.close('west'); - } + $sConfigureWestPane $('#left-pane').layout({ resizable: false, spacing_open: 0, south: { size: 94 }, enableCursorHotkey: false }); @@ -214,6 +227,7 @@ EOF } EOF ; + $this->add_ready_script( <<< EOF @@ -790,7 +804,10 @@ EOF $sHtml .= '
'; $sHtml .= ' '; $sHtml .= '
'; - $sHtml .= '
pin
'; + if (!MetaModel::GetConfig()->Get('demo_mode')) + { + $sHtml .= '
pin
'; + } $sHtml .= '
'.self::FilterXSS($sForm).'
'; $sHtml .= '
'; $sHtml .= ' ';