Parcourir la source

Cosmetic bug fix: the triangle image of the collapsible section was not displayed properly if the "section" was initially open.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@240 a333f486-631f-4898-b8df-5754b55c2be0
dflaven il y a 15 ans
Parent
commit
de5a6c2aca
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      application/template.class.inc.php

+ 3 - 1
application/template.class.inc.php

@@ -141,7 +141,9 @@ class DisplayTemplate
 			break;
 			
 			case 'itoptoggle':
-				$oPage->StartCollapsibleSection($aAttributes['name']);
+				$sName = isset($aAttributes['name']) ? $aAttributes['name'] : 'Tagada';
+				$bOpen = isset($aAttributes['open']) ? $aAttributes['open'] : true;
+				$oPage->StartCollapsibleSection($sName, $bOpen);
 				$oTemplate = new DisplayTemplate($sContent);
 				$oTemplate->Render($oPage, array()); // no params to apply, they have already been applied
 				//$oPage->p('iTop Tab Content:<pre>'.htmlentities($sContent).'</pre>');