From ac381582c5e8b79e7f4ea62327e3f345c12652db Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Tue, 15 Jan 2013 08:09:59 +0100 Subject: [PATCH] Background image need to be set on container. --- js/questionset.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/questionset.js b/js/questionset.js index 2aae05d..5702100 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -141,7 +141,6 @@ H5P.QuestionSet = function (options) { questionInstances.push(tmp); } - var _updateFinishButton = function () { var answered = true; for (var i = questionInstances.length - 1; i >= 0; i--) { @@ -185,8 +184,7 @@ H5P.QuestionSet = function (options) { // Render own DOM into target. template.update(targetId, params); $myDom = $('#' + targetId); - - $myDom.find(".questionset").css({backgroundImage: 'url(' + params.backgroundImage + ')'}); + $myDom.css({backgroundImage: 'url(' + params.backgroundImage + ')'}); // Attach questions for (var i=0; i