Skip to content

Commit

Permalink
Merge pull request #2391 from toshiba/release/fix-license-clearing-table
Browse files Browse the repository at this point in the history
fix(Project): Fix bug Expand Next Level and Collapse All button are hidden when click on sort icon

Reviewed by: [email protected]
Tested by: [email protected]
  • Loading branch information
ag4ums authored Apr 11, 2024
2 parents e75ef6c + 3beff04 commit 3746fa1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<tr>
<th style="width:36%; cursor: pointer" class="sort">
<div id="expandAllWarning" class="alert alert-warning alert-dismissible mb-0 p-2" style="display:none">
<button type="button" class="close pb-3" data-dismiss="alert"></button>
<button type="button" class="close pb-3" data-dismiss="alert">x</button>
<liferay-ui:message key="all.the.levels.are.expanded" />
</div>
<div class="row px-2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ define('modules/expandCollapse', [ 'jquery' ], function($) {
toggleIcon: function toggleIcon(element){

if (element.closest('thead').hasClass('collapsed')) {
element.find("div").eq(3).children().css('display', 'none');
element.find("div").eq(2).children().css('display', 'inline');
element.find('.lexicon-icon-caret-bottom').hide();
element.find('.lexicon-icon-caret-bottom').parent().hide();
element.find('.lexicon-icon-caret-top').show();
element.find('.lexicon-icon-caret-top').parent().show();
}else{
element.find("div").eq(3).children().css('display', 'inline');
element.find("div").eq(2).children().css('display', 'none');
element.find('.lexicon-icon-caret-bottom').show();
element.find('.lexicon-icon-caret-bottom').parent().show();
element.find('.lexicon-icon-caret-top').hide();
element.find('.lexicon-icon-caret-top').parent().hide();
}
}
}
Expand Down

0 comments on commit 3746fa1

Please sign in to comment.