From 61e62185a6c7dc7a084dfc65c47e9b3f833c17fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20J=C3=B8rgensen?= Date: Tue, 15 Apr 2014 11:33:01 +0200 Subject: [PATCH] Made introduction text div not beeing rendered if no intro text set --- js/questionset.js | 4 +++- library.json | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/questionset.js b/js/questionset.js index 3d81023..d69f837 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -40,7 +40,9 @@ H5P.QuestionSet = function (options, contentId) { '<% if (introPage.showIntroPage) { %>' + '
' + '
<%= introPage.title %>
' + - '
<%= introPage.introduction %>
' + + ' <% if (introPage.introduction) { %>' + + '
<%= introPage.introduction %>
' + + ' <% } %>' + ' ' + '
' + '<% } %>' + diff --git a/library.json b/library.json index e07c2b0..4db79a0 100644 --- a/library.json +++ b/library.json @@ -3,7 +3,7 @@ "contentType": "question", "majorVersion": 1, "minorVersion": 0, - "patchVersion": 47, + "patchVersion": 48, "runnable": 1, "fullscreen": 0, "machineName": "H5P.QuestionSet", @@ -48,4 +48,4 @@ "minorVersion": 0 } ] -} \ No newline at end of file +}