Make sure styles are not being added twice to questions [HFP-56]

pull/8/head
Timothy Lim 2016-11-14 15:53:27 +01:00
parent 568e0992e5
commit 163e314059
1 changed files with 4 additions and 1 deletions

View File

@ -827,6 +827,9 @@ H5P.QuestionSet = function (options, contentId, contentData) {
for (var i = 0; i < questionInstances.length; i++) {
var question = questionInstances[i];
// Make sure styles are not being added twice
$('.question-container:eq(' + i + ')', $myDom).attr('class', 'question-container');
question.attach($('.question-container:eq(' + i + ')', $myDom));
// Listen for image resize