From b6ba0e4c34a80bd15126520673bc76f2763abfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20J=C3=B8rgensen?= Date: Tue, 15 Apr 2014 14:48:28 +0200 Subject: [PATCH] Made title text div not beeing rendered if no title set --- js/questionset.js | 4 +++- library.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/js/questionset.js b/js/questionset.js index d69f837..dade03b 100644 --- a/js/questionset.js +++ b/js/questionset.js @@ -39,7 +39,9 @@ H5P.QuestionSet = function (options, contentId) { var texttemplate = '<% if (introPage.showIntroPage) { %>' + '
' + - '
<%= introPage.title %>
' + + ' <% if (introPage.title) { %>' + + '
<%= introPage.title %>
' + + ' <% } %>' + ' <% if (introPage.introduction) { %>' + '
<%= introPage.introduction %>
' + ' <% } %>' + diff --git a/library.json b/library.json index 4db79a0..2dafabb 100644 --- a/library.json +++ b/library.json @@ -3,7 +3,7 @@ "contentType": "question", "majorVersion": 1, "minorVersion": 0, - "patchVersion": 48, + "patchVersion": 49, "runnable": 1, "fullscreen": 0, "machineName": "H5P.QuestionSet",