From 2e3bccd87c7000abc653eb51a04fd7f34c773198 Mon Sep 17 00:00:00 2001 From: Sanmugasundaram Date: Mon, 19 Jan 2015 14:52:52 +0530 Subject: include general type in feedback bug option --- acknowledge.php | 8 +++++--- comment.js | 3 ++- index.php | 8 +++++--- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/acknowledge.php b/acknowledge.php index bce022d..e13401e 100755 --- a/acknowledge.php +++ b/acknowledge.php @@ -1,10 +1,12 @@ Contributor: {$proposal['full_name']} "; 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; diff --git a/index.php b/index.php index 8c38519..5573f5c 100755 --- a/index.php +++ b/index.php @@ -386,8 +386,9 @@