Skip to content

Commit

Permalink
Remove deprecated js
Browse files Browse the repository at this point in the history
  • Loading branch information
crftwrk committed Mar 12, 2024
1 parent c8a0ad9 commit 185d473
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ jQuery(function ($) {
$('.offcanvas').offcanvas('hide');
});

// Search collapse button hide if empty
// Deprecated v5.2.3.4, done by php if (is_active_sidebar('top-nav-search')) in header.php
// Remove in v6
if ($('#collapse-search').children().length == 0) {
$('.top-nav-search-md, .top-nav-search-lg').remove();
}

// Searchform focus
$('#collapse-search').on('shown.bs.collapse', function () {
$('.top-nav-search input:first-of-type').trigger('focus');
Expand Down

0 comments on commit 185d473

Please sign in to comment.