Final upload, should be running now

Took 7 minutes
This commit is contained in:
2020-10-03 13:30:13 +02:00
parent 18d672d057
commit a1b0f7d681
4 changed files with 25 additions and 10 deletions

11
vendor/js/faq.js vendored
View File

@ -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!' );
}
});
}