Skip to content

Commit

Permalink
Merge pull request #617 from Thegennok/search_js
Browse files Browse the repository at this point in the history
Clear main search bar when user click on the clear button #574 + typo
  • Loading branch information
flodolo committed Feb 14, 2016
2 parents fe02db6 + 9406f34 commit 367fda0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/js/main_search.js
Expand Up @@ -58,7 +58,7 @@ $(document).ready(function() {
var option_label = $('#search_type option[value="' + this.value + '"]').text();
$('#searchcontextvalue').text(option_label);
check_default(this.id);
// Check if suggestions shoul be disabled or enabled
// Check if suggestions should be disabled or enabled
check_suggestions();
});

Expand Down Expand Up @@ -148,6 +148,7 @@ $(document).ready(function() {
// Clear the search field when clicking on the X button
$('#clear_search').on('click', function() {
$('#recherche').val('').focus();
$('#recherche').autocomplete().clear();
$(this).hide();
});
});

0 comments on commit 367fda0

Please sign in to comment.