From 6c8e2c57afaaf362eec7d4fba97096213614f97d Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Sun, 20 Jan 2013 22:25:34 +0100 Subject: [PATCH] Fix target bug in questionset --- js/questionset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/questionset.js b/js/questionset.js index 5cd512a..c9ebdc9 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -230,7 +230,7 @@ H5P.QuestionSet = function (options, contentId) { resulttext: (success ? params.endGame.resultPage.successComment : params.endGame.resultPage.failComment), finishButtonText: params.endGame.resultPage.finishButtonText }; - endTemplate.update(targetId, eparams); + endTemplate.update(target.attr('id'), eparams); $('.qs-finishbutton').click(function (ev) { // Display animation if present. if (params.endGame.animations.showAnimations) {