Skip to content

Commit

Permalink
[FEATURE] After clicking on mainNavigationSearchBtn, mainNavigationSe…
Browse files Browse the repository at this point in the history
…archBox is focused. (#3)
  • Loading branch information
pxamike authored and dmh committed Jul 1, 2016
1 parent 48a2645 commit 876c521
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dev/js/main/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ jQuery(function($) {
e.preventDefault();
$(this).toggleClass('_search-close-btn');
$mainNavigationSearchBox.toggleClass('_search-box-visible');
if ($mainNavigationSearchBox.hasClass('_search-box-visible')) {
$mainNavigationSearchBox.find('input[type="search"]').focus();
}
$mainNavigationSearchBoxOverlay.toggleClass('_search-box-overlay-visible');
});
$mainNavigationSearchBoxOverlay.on('click', function() {
Expand Down

0 comments on commit 876c521

Please sign in to comment.