From 0dcc4503f9ae89cd081139fdd15731095e268840 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Thu, 10 Apr 2014 12:57:55 +0200 Subject: [PATCH 1/2] Added ignore file. --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ From bc9b787e78534576bd7c58c2e951f39f5b99e193 Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Fri, 11 Apr 2014 15:50:22 +0200 Subject: [PATCH 2/2] Fixed resize bug when embedded. --- js/questionset.js | 1 + library.json | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/js/questionset.js b/js/questionset.js index 50ed833..3d81023 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -424,6 +424,7 @@ H5P.QuestionSet = function (options, contentId) { // Masquerade the main object to hide inner properties and functions. var returnObject = { + $: $(this), attach: attach, // Attach to DOM object getQuestions: function () {return questionInstances;}, getScore: getScore, diff --git a/library.json b/library.json index e842aee..ae4fa01 100644 --- a/library.json +++ b/library.json @@ -3,17 +3,21 @@ "contentType": "question", "majorVersion": 1, "minorVersion": 0, - "patchVersion": 45, + "patchVersion": 46, "runnable": 1, "fullscreen": 0, "machineName": "H5P.QuestionSet", "author": "Amendor AS", "license": "cc-by-sa", "preloadedJs": [ - {"path": "js/questionset.js"} + { + "path": "js/questionset.js" + } ], "preloadedCss": [ - {"path": "css/questionset.css"} + { + "path": "css/questionset.css" + } ], "preloadedDependencies": [ { @@ -44,4 +48,4 @@ "minorVersion": 0 } ] -} +} \ No newline at end of file