N°2790 fix collapsibleLabel

* change icon when label closed
* fix switch in about dialog for licenses details
This commit is contained in:
Pierre Goiffon
2020-02-18 15:43:25 +01:00
parent 412f1a394f
commit a92157f763
2 changed files with 9 additions and 3 deletions

View File

@@ -1509,7 +1509,13 @@ EOF
{
$oPage->add('<li><b>'.$oLicense->product.'</b>, &copy; '.$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>');