Skip to content

Commit

Permalink
fixed condition for hide sidebar button functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
int-JHG committed Mar 21, 2022
1 parent f4ac58d commit 008972b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $( document ).ready( function() {

// hide sidebar toggle button if sidebar empty
$( document ).ready( function() {
if ( $('.page-content__sidebar .widget' ).length === 0) {
if ( $('.page-content__sidebar .widget' ).length != 0) {
$( '[data-open="sidebar"]' ).fadeIn('fast');
}
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ $( document ).ready( function() {

// hide sidebar toggle button if sidebar empty
$( document ).ready( function() {
if ( $('.page-content__sidebar .widget' ).length === 0) {
if ( $('.page-content__sidebar .widget' ).length != 0) {
$( '[data-open="sidebar"]' ).fadeIn('fast');
}
} );
Expand Down

0 comments on commit 008972b

Please sign in to comment.