Allow to automatically hide/show the menu pane as a parameter to the page (useful for automating the documentation)

SVN:trunk[2443]
This commit is contained in:
Denis Flaven
2012-11-21 11:08:36 +00:00
parent a4ddc99446
commit 1f9950507c

View File

@@ -320,6 +320,11 @@ EOF
$('.caselog_header').click( function () { $(this).toggleClass('open').next('.caselog_entry').toggle(); });
EOF
);
$bForceMenuPane = utils::ReadParam('force_menu_pane', null);
if ($bForceMenuPane !== null)
{
appUserPreferences::SetPref('menu_pane', ($bForceMenuPane) ? 'open' : 'closed');
}
$sUserPrefs = appUserPreferences::GetAsJSON();
$this->add_script(
<<<EOF