X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fstatements.js;h=819d7238b975bb0b7701e0d44bc5e100bbe6f5e6;hb=8a2b3260841fc5c2e0d24758bf94628ac52300d3;hp=8cfbde3a505a6f9d2d78c2e6c49e4d71b3ef2496;hpb=3b8117c51c644b050b87811f1a923f6b7e5b7916;p=qomet.git diff --git a/public/javascripts/components/statements.js b/public/javascripts/components/statements.js index 8cfbde3..819d723 100644 --- a/public/javascripts/components/statements.js +++ b/public/javascripts/components/statements.js @@ -1,7 +1,7 @@ Vue.component("statements", { // 'answers' is an object containing // 'inputs'(array), - // 'displayAll'(bool), + // 'displayAll'(bool), //TODO: should be in questions! // 'showSolution'(bool), // 'indices': order of appearance // 'index': current integer index (focused question) @@ -48,6 +48,7 @@ Vue.component("statements", { change: e => { this.answers.inputs[i][idx] = e.target.checked; }, }, }, + [ '' ] //to work in Firefox 45.9 ESR @ ENSTA... ) ); option.push( @@ -88,6 +89,8 @@ Vue.component("statements", { optionList ) ); + if (this.answers.displayAll && i < this.questions.length-1) + questionContent.push( h("hr") ); return h( "div", {