Changed the default Q+A source.

master
Pacman Ghost 3 years ago
parent 37665dda7f
commit b0ad9fcad8
  1. 6
      asl_rulebook2/bin/qa-helper/main.js

@ -1,6 +1,8 @@
var gQuestionImageUrl = "../../webapp/static/images/question.png" ; var gQuestionImageUrl = "../../webapp/static/images/question.png" ;
var gAnswerImageUrl = "../../webapp/static/images/answer.png" ; var gAnswerImageUrl = "../../webapp/static/images/answer.png" ;
var QA_SOURCE = "ps" ;
// -------------------------------------------------------------------- // --------------------------------------------------------------------
$(document).ready( function() { $(document).ready( function() {
@ -133,12 +135,12 @@ function updatePreviews()
if ( question ) { if ( question ) {
jsonContent.push( [ jsonContent.push( [
' { "question": "' + safeJson(question) + '",', ' { "question": "' + safeJson(question) + '",',
' "answers": [ [ "' + safeJson(answer) + '", "sr" ] ]', ' "answers": [ [ "' + safeJson(answer) + '", "' + QA_SOURCE + '" ] ]',
' }' ' }'
].join( "\n" ) ) ; ].join( "\n" ) ) ;
} else { } else {
jsonContent.push( [ jsonContent.push( [
' { "answers": [ [ "' + safeJson(answer) + '", "sr" ] ]', ' { "answers": [ [ "' + safeJson(answer) + '", "' + QA_SOURCE + '" ] ]',
' }' ' }'
].join( "\n" ) ) ; ].join( "\n" ) ) ;
} }

Loading…
Cancel
Save