Parcourir la source

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 il y a 12 ans
Parent
commit
c93bd59f58
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  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