Skip to content

Commit

Permalink
Fixed reset function not working
Browse files Browse the repository at this point in the history
  • Loading branch information
w3scout committed Apr 30, 2018
1 parent 96edc19 commit 9dd3d49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/contao/templates/j_searchfaq.html5
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jQuery(function($) {
function reset() {
$('.alert').removeClass('alert-danger alert-success').css('display', 'none').text('');

searchTerm = $('#faq_search').val();
if(searchTerm == undefined || searchTerm.length == 0) return;
$('#faq_search').val('');

Expand Down

0 comments on commit 9dd3d49

Please sign in to comment.