Skip to content

Commit

Permalink
Show MathJax in the hint
Browse files Browse the repository at this point in the history
  • Loading branch information
kreut committed Oct 22, 2024
1 parent 439af8e commit 46f0238
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions resources/js/pages/questions.view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1545,9 +1545,7 @@
<b-button
size="sm"
variant="info"
@click="!questions[currentPage-1].shown_hint
? $bvModal.show('modal-confirm-show-hint')
: $bvModal.show('modal-hint')"
@click="showHintModal()"
>
Show Hint
</b-button>
Expand Down Expand Up @@ -3831,12 +3829,19 @@ export default {
}
},
methods: {
doCopy,
updateAutoAttribution,
getTechnologySrcDoc,
addGlow,
hideSubmitButtonsIfCannotSubmit,
showHintModal () {
!this.questions[this.currentPage - 1].shown_hint
? this.$bvModal.show('modal-confirm-show-hint')
: this.$bvModal.show('modal-hint')
this.$nextTick(() => {
this.renderMathJax()
})
},
isDiscussIt () {
const question = this.questions[this.currentPage - 1]
try {
Expand Down

0 comments on commit 46f0238

Please sign in to comment.