From 44ef62eb9015924b3f25c77f949e2431073b63c2 Mon Sep 17 00:00:00 2001 From: Frank Ronny Larsen Date: Wed, 6 Feb 2013 15:49:15 +0100 Subject: [PATCH] Updated to use image objects from options --- js/questionset.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/js/questionset.js b/js/questionset.js index 001fb74..178c724 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -96,15 +96,7 @@ H5P.QuestionSet = function (options, contentId) { animations: { showAnimations: false, successVideo: undefined, - failVideo: undefined, - successResultAnimation: { - machineName: "H5P.Image", - options: {image: ""} - }, - failedResultAnimation: { - machineName: "H5P.Image", - options: {image: ""} - } + failVideo: undefined } } }; @@ -180,7 +172,7 @@ H5P.QuestionSet = function (options, contentId) { // Render own DOM into target. $myDom = target; $myDom.html(template.render(params)).css({ - backgroundImage: 'url(' + cp + params.backgroundImage + ')' + backgroundImage: 'url(' + cp + params.backgroundImage.path + ')' }); // Attach questions