浏览代码

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2443 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 年之前
父节点
当前提交
c93bd59f58
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      application/itopwebpage.class.inc.php

+ 5 - 0
application/itopwebpage.class.inc.php

@@ -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