From 80d988e2c69a3316659fd83a873b7c7eba3af1c8 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Sat, 23 Jan 2016 01:56:11 +0000 Subject: [PATCH] Error for invalid filter is now auto hidden on a new filter submission. --- static/quiz_item.coffee | 1 + static/quiz_item.js | 1 + 2 files changed, 2 insertions(+) diff --git a/static/quiz_item.coffee b/static/quiz_item.coffee index 16ea5c7..a72bb3d 100644 --- a/static/quiz_item.coffee +++ b/static/quiz_item.coffee @@ -82,6 +82,7 @@ filterQuestions = () -> $('#filter-form').submit( (e) -> e.preventDefault() + $('#error-area').hide() filterQuestions() $('#modal-filter').modal('hide') linearCount = 0 diff --git a/static/quiz_item.js b/static/quiz_item.js index 5e607dd..4a9d8c1 100644 --- a/static/quiz_item.js +++ b/static/quiz_item.js @@ -127,6 +127,7 @@ $('#filter-form').submit(function(e) { e.preventDefault(); + $('#error-area').hide(); filterQuestions(); $('#modal-filter').modal('hide'); return linearCount = 0;