Final upload, should be running now
Took 7 minutes
This commit is contained in:
11
vendor/js/faq.js
vendored
11
vendor/js/faq.js
vendored
@ -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!' );
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user