Error for invalid filter is now auto hidden on a new filter submission.

This commit is contained in:
neviyn 2016-01-23 01:56:11 +00:00
parent 0f116d1fe2
commit 80d988e2c6
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ filterQuestions = () ->
$('#filter-form').submit( (e) -> $('#filter-form').submit( (e) ->
e.preventDefault() e.preventDefault()
$('#error-area').hide()
filterQuestions() filterQuestions()
$('#modal-filter').modal('hide') $('#modal-filter').modal('hide')
linearCount = 0 linearCount = 0

View File

@ -127,6 +127,7 @@
$('#filter-form').submit(function(e) { $('#filter-form').submit(function(e) {
e.preventDefault(); e.preventDefault();
$('#error-area').hide();
filterQuestions(); filterQuestions();
$('#modal-filter').modal('hide'); $('#modal-filter').modal('hide');
return linearCount = 0; return linearCount = 0;