summaryrefslogtreecommitdiff
path: root/comment.js
diff options
context:
space:
mode:
Diffstat (limited to 'comment.js')
-rw-r--r--comment.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/comment.js b/comment.js
index a17ecd2..bb2318a 100644
--- a/comment.js
+++ b/comment.js
@@ -30,8 +30,9 @@ $(document).ready(function(){
safe($comment_type);
safe($comment_body);
safe($comment_email);
+ $error_msg.hide();
- if(!$("#example").val()) {
+ if(!$("#example").val() && $comment_type.val() != "7") {
$error_msg.html("Please select a category, book, chapter and an example before reporting a bug.")
$error_msg.show();
errors = 1;