mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°2790 fix collapsibleLabel
* change icon when label closed * fix switch in about dialog for licenses details
This commit is contained in:
@@ -1509,7 +1509,13 @@ EOF
|
||||
{
|
||||
$oPage->add('<li><b>'.$oLicense->product.'</b>, © '.$oLicense->author.' is licensed under the <b>'.$oLicense->license_type.' license</b>. (<a id="toggle_'.$index.'" class="CollapsibleLabel" style="cursor:pointer;">Details</a>)');
|
||||
$oPage->add('<div id="license_'.$index.'" class="license_text" style="display:none;overflow:auto;max-height:10em;font-size:small;border:1px #696969 solid;margin-bottom:1em; margin-top:0.5em;padding:0.5em;">'.$oLicense->text.'</div>');
|
||||
$oPage->add_ready_script('$("#toggle_'.$index.'").click( function() { $("#license_'.$index.'").slideToggle("normal"); } );');
|
||||
$oPage->add_ready_script(<<<JS
|
||||
$("#toggle_$index").click( function() {
|
||||
$(this).toggleClass('open');
|
||||
$("#license_$index").slideToggle("normal");
|
||||
});
|
||||
JS
|
||||
);
|
||||
$index++;
|
||||
}
|
||||
$oPage->add('</ul>');
|
||||
|
||||
Reference in New Issue
Block a user