+
-
+
diff --git a/config.inc.php b/config.inc.php
index 302bf48..a6a940a 100644
--- a/config.inc.php
+++ b/config.inc.php
@@ -7,4 +7,4 @@ define( 'MYSQL_PASS', 'RnKVJHcUBIIu1XM2' );
define( 'MYSQL_DB', 'online-faq' );
define( 'CODE_LENGTH', 4 );
-define( 'WASTED_TIME', '7hrs and 26min' );
\ No newline at end of file
+define( 'WASTED_TIME', '26hrs and 3mins' );
\ No newline at end of file
diff --git a/templates/faq.tmpl.html b/templates/faq.tmpl.html
index 38f2987..e2920f5 100755
--- a/templates/faq.tmpl.html
+++ b/templates/faq.tmpl.html
@@ -69,7 +69,7 @@
-
+
diff --git a/vendor/js/faq.js b/vendor/js/faq.js
index 9d321b4..76a4300 100644
--- a/vendor/js/faq.js
+++ b/vendor/js/faq.js
@@ -144,8 +144,15 @@ function answer()
{
answerErrorMsg.html( '' );
answerModal.modal( 'hide' );
- }, function() {
- answerErrorMsg.html( 'An error occurred. Please try again later!' );
+ }, function( result ) {
+ switch( result.status )
+ {
+ case 905:
+ answerErrorMsg.html( 'You are not allowed to answer questions!' );
+ break;
+ default:
+ answerErrorMsg.html( 'An error occurred. Please try again later!' );
+ }
});
}