Skip to content

Commit

Permalink
Fixed reset button not working
Browse files Browse the repository at this point in the history
  • Loading branch information
w3scout committed Apr 30, 2018
1 parent e008b5a commit 96edc19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Resources/contao/templates/j_searchfaq.html5
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jQuery(function($) {
$('.alert').addClass('alert-danger').html('No matches.').css('display', 'block');
}
});
$('.reset').on('click', reset());
$('.reset').on('click', function() {
reset();
});
function reset() {
$('.alert').removeClass('alert-danger alert-success').css('display', 'none').text('');

Expand Down

0 comments on commit 96edc19

Please sign in to comment.