Fixing a little bug

Took 10 minutes
This commit is contained in:
2020-10-04 18:06:23 +02:00
parent 78f386d563
commit c0586a9ffa
2 changed files with 15 additions and 9 deletions

2
vendor/js/faq.js vendored
View File

@ -223,7 +223,7 @@ function getQuestions()
$('#q_' + result.data.questions[i].id + ' p' ).html( result.data.questions[i].question + '<hr><span id="qa_' + result.data.questions[i].id + '">' + result.data.questions[i].answer + '</span>' );
$('#q_' + result.data.questions[i].id + ' h5').addClass( 'text-info' ).removeClass( 'text-warning' );
}
else if ( result.data.questions[i].answer !== $('#qa_' + result.data.questions[i].id ).html() )
else if ( result.data.questions[i].answer !== $('#qa_' + result.data.questions[i].id ).html() && result.data.questions[i].answer.length > 5 )
{
$('#q_' + result.data.questions[i].id + ' p' ).html( result.data.questions[i].question + '<hr><span id="qa_' + result.data.questions[i].id + '">' + result.data.questions[i].answer + '</span>' );
}