mirror of
https://github.com/Combodo/iTop.git
synced 2026-09-29 21:09:10 +02:00
N°2790 fix collapsibleLabel
* change icon when label closed * fix switch in about dialog for licenses details
This commit is contained in:
@@ -577,7 +577,7 @@ td a.CollapsibleLabel, a.CollapsibleLabel{
|
||||
td a.CollapsibleLabel::before, a.CollapsibleLabel::before{
|
||||
font-family: "Font Awesome 5 Free";
|
||||
color: $highlight-color;
|
||||
content: "\f0dd";
|
||||
content: "\f0da"; // caret-right
|
||||
font-weight: 900;
|
||||
margin: 0 5px;
|
||||
font-size: 10px;
|
||||
@@ -594,7 +594,7 @@ td a.CollapsibleLabel.open, a.CollapsibleLabel.open{
|
||||
td a.CollapsibleLabel.open::before, a.CollapsibleLabel.open::before {
|
||||
font-family: "Font Awesome 5 Free";
|
||||
color: $highlight-color;
|
||||
content: '\f0d7';
|
||||
content: '\f0d7'; // caret-down
|
||||
margin-right: 6px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
@@ -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