Skip to content

Commit

Permalink
Merge pull request #12 from pt-kompas-media-nusantara/dev-cms-kuis
Browse files Browse the repository at this point in the history
update pilihan jawaban
  • Loading branch information
denyramandaa authored Oct 26, 2021
2 parents c40c9ef + f8e6ba5 commit 0555104
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion admin/js/interactive-quiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ new Vue({
this.choiceNumber.splice(idx, 1)
this.choiceNumber.push(number)
}
this.updateAnswerChoice(idx);
this.updateAnswerCount(idx)
},
updateAnswerChoice(idx) {
let choiceNumber = this.choiceNumber[idx];
Expand Down Expand Up @@ -210,6 +210,10 @@ new Vue({
// remove column after add form
const addForm = document.getElementsByClassName('addColumn')[idx];
addForm.style.display = 'none'
const _self = this
setTimeout(function() {
_self.inputChoicesNumber(idx+1)
}, 250)
},
getInput(){
const questionLength = document.getElementsByClassName('question_block').length;
Expand Down

0 comments on commit 0555104

Please sign in to comment.