Преглед на файлове

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 преди 15 години
родител
ревизия
de5a6c2aca
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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>');